search for: propagatable

Displaying 1 result from an estimated 1 matches for "propagatable".

2010 Feb 26
0
[LLVMdev] a question of the simple constant propagation pass
...om the worklist... 68 69 if (!I->use_empty()) // Don't muck with dead instructions... 70 if (Constant *C = ConstantFoldInstruction(I, F.getContext())) { 71 // Add all of the users of this instruction to the worklist, they might 72 // be constant propagatable now... 73 for (Value::use_iterator UI = I->use_begin(), UE = I->use_end(); 74 UI != UE; ++UI) 75 WorkList.insert(cast<Instruction>(*UI)); 76 77 // Replace all of the uses of a variable with uses of the constant. 78 I->replaceAllUse...