diff options
author | Tobias Grosser <tobias@grosser.es> | 2014-09-28 22:40:36 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2014-09-28 22:40:36 +0000 |
commit | f8a678d2fdc280b46c7be0422f84abafc345b842 (patch) | |
tree | a19c431d3f2b79a26e594229a8a9b261cfc4a72d /polly/lib/CodeGen/LoopGenerators.cpp | |
parent | 09c077805990d281309a5cd02ef1b5bd7fb6b85b (diff) | |
download | bcm5719-llvm-f8a678d2fdc280b46c7be0422f84abafc345b842.tar.gz bcm5719-llvm-f8a678d2fdc280b46c7be0422f84abafc345b842.zip |
Build domtree of new loops correctly
This fixes a bug introduced in r217525.
llvm-svn: 218581
Diffstat (limited to 'polly/lib/CodeGen/LoopGenerators.cpp')
-rw-r--r-- | polly/lib/CodeGen/LoopGenerators.cpp | 2 |
1 files changed, 1 insertions, 1 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()); |