diff options
author | Max Kazantsev <max.kazantsev@azul.com> | 2017-12-29 08:44:32 +0000 |
---|---|---|
committer | Max Kazantsev <max.kazantsev@azul.com> | 2017-12-29 08:44:32 +0000 |
commit | 2c2b1f6d04b87fa0d0af1364c67fe8fcfc763503 (patch) | |
tree | f1068916e4e5c8bd19f1dca3f29b4fa7c440c91e | |
parent | 03ddad853d4070b7f94e9c09c105182302990541 (diff) | |
download | bcm5719-llvm-2c2b1f6d04b87fa0d0af1364c67fe8fcfc763503.tar.gz bcm5719-llvm-2c2b1f6d04b87fa0d0af1364c67fe8fcfc763503.zip |
[SCEV] Missing depth propagation in recursive call
llvm-svn: 321550
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index f34549ae52b..14bfe0d17ac 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -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 |