summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-28 15:47:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-28 15:47:17 +0000
commitb8c058cbb0edddc436e93d1eb35a36acb74d353b (patch)
tree7a503f5aa77263ac33ca451172d7527518d2212f
parent282ddc646bc994b2d0e06dfd56b7430083fa258e (diff)
downloadbcm5719-llvm-b8c058cbb0edddc436e93d1eb35a36acb74d353b.tar.gz
bcm5719-llvm-b8c058cbb0edddc436e93d1eb35a36acb74d353b.zip
Revert r106907, "make sure to handle dbg_value instructions in the middle of the
block, not...", it caused a bunch of nightly test regressions. llvm-svn: 107009
-rw-r--r--llvm/lib/CodeGen/IfConversion.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp
index 51fea7f94e5..ea4e68dbdaf 100644
--- a/llvm/lib/CodeGen/IfConversion.cpp
+++ b/llvm/lib/CodeGen/IfConversion.cpp
@@ -1228,18 +1228,10 @@ bool IfConverter::IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind,
++DI2;
BBI1->NonPredSize -= NumDups1;
BBI2->NonPredSize -= NumDups1;
-
- // Skip past the dups on each side separately since there may be
- // differing dbg_value entries.
- for (unsigned i = 0; i < NumDups1; ++i) {
- ++DI1;
- if (!DI1->isDebugValue())
- ++i;
- }
while (NumDups1 != 0) {
+ ++DI1;
++DI2;
- if (!DI2->isDebugValue())
- --NumDups1;
+ --NumDups1;
}
UpdatePredRedefs(BBI1->BB->begin(), DI1, Redefs, TRI);
OpenPOWER on IntegriCloud