diff options
author | Devang Patel <dpatel@apple.com> | 2007-08-24 19:32:26 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-08-24 19:32:26 +0000 |
commit | 7097e9a7103ce92405d17965f573378007efa7ce (patch) | |
tree | 33c648800267d1d10f148b6e40f9b21c1405d047 /lib/Transforms | |
parent | 90e167a908d8020133a9af901225e25d9c8d19be (diff) | |
download | external_llvm-7097e9a7103ce92405d17965f573378007efa7ce.zip external_llvm-7097e9a7103ce92405d17965f573378007efa7ce.tar.gz external_llvm-7097e9a7103ce92405d17965f573378007efa7ce.tar.bz2 |
Fix regression that I caused yesterday night while adding logic to select appropriate split condition branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/LoopIndexSplit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LoopIndexSplit.cpp b/lib/Transforms/Scalar/LoopIndexSplit.cpp index 23ffc3a..1eeb9be 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp @@ -903,7 +903,7 @@ bool LoopIndexSplit::splitLoop(SplitInfo &SD) { A_ActiveBranch = A_BR->getSuccessor(1); A_InactiveBranch = A_BR->getSuccessor(0); } - A_BR->setUnconditionalDest(A_BR->getSuccessor(0)); + A_BR->setUnconditionalDest(A_ActiveBranch); removeBlocks(A_InactiveBranch, L, A_ActiveBranch); //[*] Eliminate split condition's inactive branch in from BLoop. @@ -918,7 +918,7 @@ bool LoopIndexSplit::splitLoop(SplitInfo &SD) { B_ActiveBranch = B_BR->getSuccessor(0); B_InactiveBranch = B_BR->getSuccessor(1); } - B_BR->setUnconditionalDest(B_BR->getSuccessor(1)); + B_BR->setUnconditionalDest(B_ActiveBranch); removeBlocks(B_InactiveBranch, BLoop, B_ActiveBranch); return true; |