Minor statistics counting bug.

llvm-svn: 37451
This commit is contained in:
Evan Cheng 2007-06-06 01:12:44 +00:00
parent 5aced6a54a
commit b30a89457c
1 changed files with 5 additions and 3 deletions

View File

@ -158,15 +158,17 @@ bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
// Block has been already been if-converted, abort!
break;
case ICSimple:
case ICSimpleFalse:
case ICSimpleFalse: {
bool isRev = BBI.Kind == ICSimpleFalse;
DOUT << "Ifcvt (Simple" << (BBI.Kind == ICSimpleFalse ? " false" : "")
<< "): BB#" << BBI.BB->getNumber() << " ";
RetVal = IfConvertSimple(BBI);
DOUT << (RetVal ? "succeeded!" : "failed!") << "\n";
if (RetVal)
if (BBI.Kind == ICSimple) NumSimple++;
else NumSimpleRev++;
if (isRev) NumSimple++;
else NumSimpleRev++;
break;
}
case ICTriangle:
DOUT << "Ifcvt (Triangle): BB#" << BBI.BB->getNumber() << " ";
RetVal = IfConvertTriangle(BBI);