[llvm-commits] [llvm] r136588 - /llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp
Jakub Staszak
jstaszak at apple.com
Sat Jul 30 22:54:04 PDT 2011
Author: kuba
Date: Sun Jul 31 00:54:04 2011
New Revision: 136588
URL: http://llvm.org/viewvc/llvm-project?rev=136588&view=rev
Log:
Do not handle cases with >= and <= predicates.
Modified:
llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp
Modified: llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp?rev=136588&r1=136587&r2=136588&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/BranchProbabilityInfo.cpp Sun Jul 31 00:54:04 2011
@@ -304,23 +304,16 @@
isProb = true;
break;
- case CmpInst::ICMP_ULT:
- case CmpInst::ICMP_ULE:
case CmpInst::ICMP_SLT:
- case CmpInst::ICMP_SLE:
// Less or equal to zero is not expected.
// X < 0 -> Unlikely
- // X <= 0 -> Unlikely
isProb = false;
break;
case CmpInst::ICMP_UGT:
- case CmpInst::ICMP_UGE:
case CmpInst::ICMP_SGT:
- case CmpInst::ICMP_SGE:
// Greater or equal to zero is expected.
// X > 0 -> Likely
- // X >= 0 -> Likely
isProb = true;
break;
More information about the llvm-commits
mailing list