[PATCH] D51718: Update MemorySSA in LoopRotate.
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 06:50:05 PDT 2020
lebedev.ri added subscribers: fhahn, lebedev.ri.
lebedev.ri added inline comments.
Herald added a project: LLVM.
================
Comment at: llvm/trunk/lib/Transforms/Utils/LoopRotationUtils.cpp:682-687
+ LoopRotate LR(Threshold, LI, TTI, AC, DT, SE, MSSAU, SQ, RotationOnly,
+ IsUtilMode);
+ if (MSSAU && VerifyMemorySSA)
+ MSSAU->getMemorySSA()->verifyMemorySSA();
return LR.processLoop(L);
----------------
@asbirlea @fhahn
Is this actually correct?
Don't you want to run verification after actually doing the changes?
I.e. shouldn't this be
```
{
if (MSSAU && VerifyMemorySSA)
MSSAU->getMemorySSA()->verifyMemorySSA();
LoopRotate LR(Threshold, LI, TTI, AC, DT, SE, MSSAU, SQ, RotationOnly,
IsUtilMode);
bool Changed = LR.processLoop(L);
if (MSSAU && VerifyMemorySSA)
MSSAU->getMemorySSA()->verifyMemorySSA();
return Changed;
}
```
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D51718/new/
https://reviews.llvm.org/D51718
More information about the llvm-commits
mailing list