projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0bfe0f
)
implement Transforms/LoopStrengthReduce/invariant_value_first_arg.ll
author
Chris Lattner
<sabre@nondot.org>
Sun, 6 Mar 2005 22:06:22 +0000
(22:06 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 6 Mar 2005 22:06:22 +0000
(22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20501
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 7ba4b810955e58e5f34c1bf239770e2c4c2b7d0b..d2cef4bc0b868df69b5ef2101c919eb2b5f86460 100644
(file)
--- a/
lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/
lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@
-154,7
+154,7
@@
void LoopStrengthReduce::strengthReduceGEP(GetElementPtrInst *GEPI, Loop *L,
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()))