[PATCH] D114633: [SCEV] Turn validity check in getExistingSCEV into assert (NFC).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 28 04:17:35 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7b75110fac97: [SCEV] Turn validity check in getExistingSCEV into assert (NFC). (authored by fhahn).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114633/new/
https://reviews.llvm.org/D114633
Files:
llvm/lib/Analysis/ScalarEvolution.cpp
Index: llvm/lib/Analysis/ScalarEvolution.cpp
===================================================================
--- llvm/lib/Analysis/ScalarEvolution.cpp
+++ llvm/lib/Analysis/ScalarEvolution.cpp
@@ -4146,10 +4146,9 @@
ValueExprMapType::iterator I = ValueExprMap.find_as(V);
if (I != ValueExprMap.end()) {
const SCEV *S = I->second;
- if (checkValidity(S))
- return S;
- eraseValueFromMap(V);
- forgetMemoizedResults(S);
+ assert(checkValidity(S) &&
+ "existing SCEV has not been properly invalidated");
+ return S;
}
return nullptr;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114633.390193.patch
Type: text/x-patch
Size: 585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211128/79504385/attachment.bin>
More information about the llvm-commits
mailing list