diff options
-rw-r--r-- | polly/lib/CodeGen/LoopGenerators.cpp | 2 | ||||
-rw-r--r-- | polly/test/Isl/CodeGen/no_guard_bb.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp index 267caeb5001..ef9bda58fd5 100644 --- a/polly/lib/CodeGen/LoopGenerators.cpp +++ b/polly/lib/CodeGen/LoopGenerators.cpp @@ -127,7 +127,7 @@ Value *polly::createLoop(Value *LB, Value *UB, Value *Stride, if (GuardBB) DT.changeImmediateDominator(ExitBB, GuardBB); else - DT.changeImmediateDominator(ExitBB, BeforeBB); + DT.changeImmediateDominator(ExitBB, HeaderBB); // The loop body should be added here. Builder.SetInsertPoint(HeaderBB->getFirstNonPHI()); diff --git a/polly/test/Isl/CodeGen/no_guard_bb.ll b/polly/test/Isl/CodeGen/no_guard_bb.ll index 3b51c77a95f..b5bf88bc19f 100644 --- a/polly/test/Isl/CodeGen/no_guard_bb.ll +++ b/polly/test/Isl/CodeGen/no_guard_bb.ll @@ -1,4 +1,4 @@ -; RUN: opt %loadPolly -polly-codegen-isl -S < %s | FileCheck %s +; RUN: opt %loadPolly -polly-codegen-isl -S -verify-dom-info < %s | FileCheck %s ; ; CHECK-NOT: br i1 true, label %polly.{{.*}}, label %polly.{{.*}} ; |