mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
Build domtree of new loops correctly
This fixes a bug introduced in r217525. llvm-svn: 218581
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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.{{.*}}
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user