mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02: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;
|
FoundMatch = true;
|
||||||
}
|
}
|
||||||
if (FoundMatch)
|
if (FoundMatch)
|
||||||
return getAddExpr(Ops, Flags);
|
return getAddExpr(Ops, Flags, Depth + 1);
|
||||||
|
|
||||||
// Check for truncates. If all the operands are truncated from the same
|
// 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
|
// type, see if factoring out the truncate would permit the result to be
|
||||||
|
Loading…
Reference in New Issue
Block a user