Displaying 1 result from an estimated 1 matches for "propagat".
Did you mean:
propagate
2010 Feb 26
0
[LLVMdev] a question of the simple constant propagation pass
...is popped from the list.
Could the loop (line 73-75) insert this I into the worklist again?
In the case where 'I' can be constant-folding, Line 80 says 'I' is
a dead instruction. Can 'I' appears in its def-use chain?
But I was probably confused.
Jianzhou
57 bool ConstantPropagation::runOnFunction(Function &F) {
58 // Initialize the worklist to all of the instructions ready to process...
59 std::set<Instruction*> WorkList;
60 for(inst_iterator i = inst_begin(F), e = inst_end(F); i != e; ++i) {
61 WorkList.insert(&*i);
62 }
63 bool Changed...