aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-07-15 11:49:24 +0100
committerFlorian Hahn <flo@fhahn.com>2020-07-15 11:49:24 +0100
commit9ea0d8c38fc58ecec2e2f62f3b65e99fcbc2ec4c (patch)
tree218c3ba1fb650cd4ffeb202df2c187a40a570505 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
parent978804821e88a34d484a8ebab72d2888f869a086 (diff)
downloadllvm-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.cpp5
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);
}