diff options
author | Florian Hahn <flo@fhahn.com> | 2020-07-15 11:49:24 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2020-07-15 11:49:24 +0100 |
commit | 9ea0d8c38fc58ecec2e2f62f3b65e99fcbc2ec4c (patch) | |
tree | 218c3ba1fb650cd4ffeb202df2c187a40a570505 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | 978804821e88a34d484a8ebab72d2888f869a086 (diff) | |
download | llvm-9ea0d8c38fc58ecec2e2f62f3b65e99fcbc2ec4c.zip llvm-9ea0d8c38fc58ecec2e2f62f3b65e99fcbc2ec4c.tar.gz llvm-9ea0d8c38fc58ecec2e2f62f3b65e99fcbc2ec4c.tar.bz2 |
[LoopRotate] Remove unnecessary verifyMemorySSA calls.
The actual rotation happens in processLoop, so the second removed
call to verifyMemorySSA was unnecessary.
In fact, processLoop/rotateLoop already verify MemorySSA before
and after transforming each loop. Hence, both calls can be removed.
Pointed out by @lebedev.ri post-commit D51718.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp index 8804bba..da1c09e 100644 --- a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp @@ -740,12 +740,7 @@ bool llvm::LoopRotation(Loop *L, LoopInfo *LI, const TargetTransformInfo *TTI, const SimplifyQuery &SQ, bool RotationOnly = true, unsigned Threshold = unsigned(-1), bool IsUtilMode = true) { - if (MSSAU && VerifyMemorySSA) - MSSAU->getMemorySSA()->verifyMemorySSA(); LoopRotate LR(Threshold, LI, TTI, AC, DT, SE, MSSAU, SQ, RotationOnly, IsUtilMode); - if (MSSAU && VerifyMemorySSA) - MSSAU->getMemorySSA()->verifyMemorySSA(); - return LR.processLoop(L); } |