[llvm-commits] CVS: llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 7 19:54:22 PST 2004
Changes in directory llvm/lib/Transforms/IPO:
ArgumentPromotion.cpp updated: 1.3 -> 1.4
---
Log message:
Implement: ArgumentPromotion/chained.ll
---
Diffs of the changes: (+5 -0)
Index: llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
diff -u llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.3 llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.4
--- llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.3 Sun Mar 7 16:43:27 2004
+++ llvm/lib/Transforms/IPO/ArgumentPromotion.cpp Sun Mar 7 16:52:53 2004
@@ -328,6 +328,11 @@
LI->replaceAllUsesWith(I2);
LI->getParent()->getInstList().erase(LI);
}
+
+ // If we inserted a new pointer type, it's possible that IT could be
+ // promoted too.
+ if (isa<PointerType>(I2->getType()))
+ WorkList.insert(NF);
++I2;
}
More information about the llvm-commits
mailing list