aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/IfConversion.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp
index 51fea7f..ea4e68d 100644
--- a/lib/CodeGen/IfConversion.cpp
+++ b/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);