mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-10 04:24:23 +00:00
LSR minor bug fix in RateRegister.
No test case. Noticed by inspection and I doubt it ever affects the outcome of the overall heuristic, let alone final codegen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140431 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0387f9e06
commit
b5b7c96ce4
@ -728,7 +728,7 @@ void Cost::RateRegister(const SCEV *Reg,
|
||||
// Add the step value register, if it needs one.
|
||||
// TODO: The non-affine case isn't precisely modeled here.
|
||||
if (!AR->isAffine() || !isa<SCEVConstant>(AR->getOperand(1)))
|
||||
if (!Regs.count(AR->getStart()))
|
||||
if (!Regs.count(AR->getOperand(1)))
|
||||
RateRegister(AR->getOperand(1), Regs, L, SE, DT);
|
||||
}
|
||||
++NumRegs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user