summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2018-02-07 04:24:44 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2018-02-07 04:24:44 +0000
commite82e83fcce6d88c1850ab876f5ee0e2172f65e8e (patch)
tree924cc76c50438839c94b60b3fd986872efc3e3d6 /llvm/lib
parentf3681015670c531cb42bc20dbbe78cb237b055d7 (diff)
downloadbcm5719-llvm-e82e83fcce6d88c1850ab876f5ee0e2172f65e8e.tar.gz
bcm5719-llvm-e82e83fcce6d88c1850ab876f5ee0e2172f65e8e.zip
Follow-up for r324429: "[LCSSAVerification] Run verification only when asserts are enabled."
Before r324429 we essentially didn't have a verification of LCSSA, so no wonder that it has been broken: currently loop-sink breaks it (the attached test illustrates the failure). It was detected during a stage2 RA build, so to unbreak it I'm disabling the check for now. llvm-svn: 324445
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/LoopPass.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp
index d4e9021ee1f..0fb15df3efd 100644
--- a/llvm/lib/Analysis/LoopPass.cpp
+++ b/llvm/lib/Analysis/LoopPass.cpp
@@ -151,7 +151,7 @@ void LPPassManager::markLoopAsDeleted(Loop &L) {
bool LPPassManager::runOnFunction(Function &F) {
auto &LIWP = getAnalysis<LoopInfoWrapperPass>();
LI = &LIWP.getLoopInfo();
-#ifndef NDEBUG
+#if 0
DominatorTree *DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
#endif
bool Changed = false;
@@ -227,8 +227,12 @@ bool LPPassManager::runOnFunction(Function &F) {
// is that LPPassManager might run passes which do not require LCSSA
// form (LoopPassPrinter for example). We should skip verification for
// such passes.
+ // FIXME: Loop-sink currently break LCSSA. Fix it and reenable the
+ // verification!
+#if 0
if (mustPreserveAnalysisID(LCSSAVerificationPass::ID))
assert(CurrentLoop->isRecursivelyLCSSAForm(*DT, *LI));
+#endif
// Then call the regular verifyAnalysis functions.
verifyPreservedAnalysis(P);
OpenPOWER on IntegriCloud