mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 03:28:31 +00:00
Add an assertion for a condition that's always true, and not
immediately obvious. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c23b8719ef
commit
bc10b8c6c7
@ -2376,6 +2376,9 @@ ICmpInst *LoopStrengthReduce::OptimizeSMax(Loop *L, ICmpInst *Cond,
|
||||
AR->getStepRecurrence(*SE) != One)
|
||||
return Cond;
|
||||
|
||||
assert(AR->getLoop() == L &&
|
||||
"Loop condition operand is an addrec in a different loop!");
|
||||
|
||||
// Check the right operand of the select, and remember it, as it will
|
||||
// be used in the new comparison instruction.
|
||||
Value *NewRHS = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user