forked from OSchip/llvm-project
[SCEV] Don't verify dispositions of invalid loops
This should fix the expensive checks build. Ideally we would not have invalid loops in LoopDispositions.
This commit is contained in:
parent
d90a42d64c
commit
36f325413e
|
@ -13976,6 +13976,9 @@ void ScalarEvolution::verify() const {
|
|||
for (auto &V : Values) {
|
||||
auto CachedDisposition = V.getInt();
|
||||
const auto *Loop = V.getPointer();
|
||||
// TODO: Make sure LoopDispositions contains no invalid loops.
|
||||
if (!ValidLoops.contains(Loop))
|
||||
continue;
|
||||
const auto RecomputedDisposition = SE2.getLoopDisposition(S, Loop);
|
||||
if (CachedDisposition != RecomputedDisposition) {
|
||||
dbgs() << "Cached disposition of " << *S << " for loop " << *Loop
|
||||
|
|
Loading…
Reference in New Issue