[llvm-commits] CVS: llvm/lib/CodeGen/IfConversion.cpp
Evan Cheng
evan.cheng at apple.com
Tue Jun 5 18:13:06 PDT 2007
Changes in directory llvm/lib/CodeGen:
IfConversion.cpp updated: 1.30 -> 1.31
---
Log message:
Minor statistics counting bug.
---
Diffs of the changes: (+5 -3)
IfConversion.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/IfConversion.cpp
diff -u llvm/lib/CodeGen/IfConversion.cpp:1.30 llvm/lib/CodeGen/IfConversion.cpp:1.31
--- llvm/lib/CodeGen/IfConversion.cpp:1.30 Tue Jun 5 19:57:55 2007
+++ llvm/lib/CodeGen/IfConversion.cpp Tue Jun 5 20:12:44 2007
@@ -158,15 +158,17 @@
// 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);
More information about the llvm-commits
mailing list