summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-12 11:32:39 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-12 11:32:39 +0000
commitf9610827ced751eddcbf1b6f9db2abc987b24c53 (patch)
tree643a1788a86dab4d8969c485b19a0ecc08cd343f /llvm/lib
parent6143704ac5bed390db2427527126a00c67bf0913 (diff)
downloadbcm5719-llvm-f9610827ced751eddcbf1b6f9db2abc987b24c53.tar.gz
bcm5719-llvm-f9610827ced751eddcbf1b6f9db2abc987b24c53.zip
back out r108131 (of TailDuplication.cpp) for now, it causes a buildbot failure
llvm-svn: 108135
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/TailDuplication.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/TailDuplication.cpp b/llvm/lib/Transforms/Scalar/TailDuplication.cpp
index febc872d930..2306a77670f 100644
--- a/llvm/lib/Transforms/Scalar/TailDuplication.cpp
+++ b/llvm/lib/Transforms/Scalar/TailDuplication.cpp
@@ -206,14 +206,13 @@ static BasicBlock *FindObviousSharedDomOf(BasicBlock *SrcBlock,
// there is only one other pred, get it, otherwise we can't handle it.
PI = pred_begin(DstBlock); PE = pred_end(DstBlock);
BasicBlock *DstOtherPred = 0;
- BasicBlock *P = *PI;
- if (P == SrcBlock) {
+ if (*PI == SrcBlock) {
if (++PI == PE) return 0;
- DstOtherPred = P;
+ DstOtherPred = *PI;
if (++PI != PE) return 0;
} else {
- DstOtherPred = P;
- if (++PI == PE || P != SrcBlock || ++PI != PE) return 0;
+ DstOtherPred = *PI;
+ if (++PI == PE || *PI != SrcBlock || ++PI != PE) return 0;
}
// We can handle two situations here: "if then" and "if then else" blocks. An
OpenPOWER on IntegriCloud