diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-06-06 01:12:44 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-06-06 01:12:44 +0000 |
commit | cb78d67a1a4e3b17d5801099940901740c67f526 (patch) | |
tree | 2aa0e964895d5009495f060739277bec9ffa4517 /lib/CodeGen/IfConversion.cpp | |
parent | 4cd950f61b5c069b3e6b97e8b4f027be373e27dc (diff) | |
download | external_llvm-cb78d67a1a4e3b17d5801099940901740c67f526.zip external_llvm-cb78d67a1a4e3b17d5801099940901740c67f526.tar.gz external_llvm-cb78d67a1a4e3b17d5801099940901740c67f526.tar.bz2 |
Minor statistics counting bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | lib/CodeGen/IfConversion.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index 8361382..a81508f 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/lib/CodeGen/IfConversion.cpp @@ -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); |