[llvm-commits] [llvm] r108135 - /llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp
Gabor Greif
ggreif at gmail.com
Mon Jul 12 04:32:39 PDT 2010
Author: ggreif
Date: Mon Jul 12 06:32:39 2010
New Revision: 108135
URL: http://llvm.org/viewvc/llvm-project?rev=108135&view=rev
Log:
back out r108131 (of TailDuplication.cpp) for now, it causes a buildbot failure
Modified:
llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp?rev=108135&r1=108134&r2=108135&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/TailDuplication.cpp Mon Jul 12 06:32:39 2010
@@ -206,14 +206,13 @@
// 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
More information about the llvm-commits
mailing list