[llvm] r321550 - [SCEV] Missing depth propagation in recursive call
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 29 00:44:32 PST 2017
Author: mkazantsev
Date: Fri Dec 29 00:44:32 2017
New Revision: 321550
URL: http://llvm.org/viewvc/llvm-project?rev=321550&view=rev
Log:
[SCEV] Missing depth propagation in recursive call
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=321550&r1=321549&r2=321550&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Fri Dec 29 00:44:32 2017
@@ -2358,7 +2358,7 @@ const SCEV *ScalarEvolution::getAddExpr(
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
More information about the llvm-commits
mailing list