new, no longer brain-dead, r106907

llvm-svn: 107060
This commit is contained in:
Jim Grosbach
2010-06-28 20:26:00 +00:00
parent 68c81196f9
commit ee6e29aa72

View File

@@ -1228,10 +1228,17 @@ 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; ++DI1) {
if (!DI1->isDebugValue())
++i;
}
while (NumDups1 != 0) {
++DI1;
++DI2;
--NumDups1;
if (!DI2->isDebugValue())
--NumDups1;
}
UpdatePredRedefs(BBI1->BB->begin(), DI1, Redefs, TRI);