[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
sabre at nondot.org
Tue Jan 30 15:16:34 PST 2007
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.612 -> 1.613
---
Log message:
pass TD to constant folding apis
---
Diffs of the changes: (+2 -2)
InstructionCombining.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.612 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.613
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.612 Tue Jan 30 16:50:32 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Tue Jan 30 17:16:15 2007
@@ -9167,7 +9167,7 @@
}
// ConstantProp instruction if trivially constant.
- if (Constant *C = ConstantFoldInstruction(Inst)) {
+ if (Constant *C = ConstantFoldInstruction(Inst, TD)) {
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
C = OptimizeConstantExpr(CE, TD);
DOUT << "IC: ConstFold to: " << *C << " from: " << *Inst;
@@ -9258,7 +9258,7 @@
}
// Instruction isn't dead, see if we can constant propagate it.
- if (Constant *C = ConstantFoldInstruction(I)) {
+ if (Constant *C = ConstantFoldInstruction(I, TD)) {
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
C = OptimizeConstantExpr(CE, TD);
DOUT << "IC: ConstFold to: " << *C << " from: " << *I;
More information about the llvm-commits
mailing list