mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
implement Transforms/LoopStrengthReduce/invariant_value_first_arg.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0bfe0f9d3
commit
2f9b19b4c9
@ -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()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user