mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96688 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5dfa26795d
commit
bc02853b89
@ -1973,6 +1973,12 @@ ScalarEvolution::getAddRecExpr(SmallVectorImpl<const SCEV *> &Operands,
|
||||
return getAddRecExpr(Operands, L, HasNUW, HasNSW); // {X,+,0} --> X
|
||||
}
|
||||
|
||||
// It's tempting to want to call getMaxBackedgeTakenCount count here and
|
||||
// use that information to infer NUW and NSW flags. However, computing a
|
||||
// BE count requires calling getAddRecExpr, so we may not yet have a
|
||||
// meaningful BE count at this point (and if we don't, we'd be stuck
|
||||
// with a SCEVCouldNotCompute as the cached BE count).
|
||||
|
||||
// If HasNSW is true and all the operands are non-negative, infer HasNUW.
|
||||
if (!HasNUW && HasNSW) {
|
||||
bool All = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user