Skip to content
Snippets Groups Projects
Commit 45403e50 authored by Chris Lattner's avatar Chris Lattner
Browse files

implement Transforms/LoopStrengthReduce/invariant_value_first_arg.ll

llvm-svn: 20501
parent 656a6e37
No related branches found
No related tags found
No related merge requests found
......@@ -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()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment