[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 6 14:06:35 PST 2005
Changes in directory llvm/lib/Transforms/Scalar:
LoopStrengthReduce.cpp updated: 1.9 -> 1.10
---
Log message:
implement Transforms/LoopStrengthReduce/invariant_value_first_arg.ll
---
Diffs of the changes: (+1 -1)
LoopStrengthReduce.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.9 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.10
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.9 Sun Mar 6 15:58:22 2005
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp Sun Mar 6 16:06:22 2005
@@ -154,7 +154,7 @@
inc_op_vector.push_back(ConstantInt::get(Ty, 1));
indvar = op;
break;
- } else if (isa<Constant>(operand)) {
+ } else if (isa<Constant>(operand) || isa<Argument>(operand)) {
pre_op_vector.push_back(operand);
} else if (Instruction *inst = dyn_cast<Instruction>(operand)) {
if (!DS->dominates(inst, Preheader->getTerminator()))
More information about the llvm-commits
mailing list