mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-12 12:33:17 +00:00
[SCEV] Missing depth propagation in recursive call
llvm-svn: 321550
This commit is contained in:
parent
086e74e04e
commit
185d475c7b
@ -2358,7 +2358,7 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
|
||||
FoundMatch = true;
|
||||
}
|
||||
if (FoundMatch)
|
||||
return getAddExpr(Ops, Flags);
|
||||
return getAddExpr(Ops, Flags, Depth + 1);
|
||||
|
||||
// Check for truncates. If all the operands are truncated from the same
|
||||
// type, see if factoring out the truncate would permit the result to be
|
||||
|
Loading…
x
Reference in New Issue
Block a user