From: Gabor Greif Date: Mon, 12 Jul 2010 11:32:39 +0000 (+0000) Subject: back out r108131 (of TailDuplication.cpp) for now, it causes a buildbot failure X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e99e0775226f09a4ac5e135c3c9bc1a836f09d15;p=oota-llvm.git back out r108131 (of TailDuplication.cpp) for now, it causes a buildbot failure git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108135 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/TailDuplication.cpp b/lib/Transforms/Scalar/TailDuplication.cpp index febc872d930..2306a77670f 100644 --- a/lib/Transforms/Scalar/TailDuplication.cpp +++ b/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