aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJakub Staszak <jstaszak@apple.com>2011-07-31 05:54:04 +0000
committerJakub Staszak <jstaszak@apple.com>2011-07-31 05:54:04 +0000
commit6762dc1fb38f7579b33143c80f057319e1537678 (patch)
tree95f9693301771abf1e7201684318127f34bd9d49 /lib
parent4faf553d508f4bc657563ca538392108a3858483 (diff)
downloadexternal_llvm-6762dc1fb38f7579b33143c80f057319e1537678.zip
external_llvm-6762dc1fb38f7579b33143c80f057319e1537678.tar.gz
external_llvm-6762dc1fb38f7579b33143c80f057319e1537678.tar.bz2
Do not handle cases with >= and <= predicates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/BranchProbabilityInfo.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Analysis/BranchProbabilityInfo.cpp b/lib/Analysis/BranchProbabilityInfo.cpp
index 9e613ba..da99f28 100644
--- a/lib/Analysis/BranchProbabilityInfo.cpp
+++ b/lib/Analysis/BranchProbabilityInfo.cpp
@@ -304,23 +304,16 @@ bool BranchProbabilityAnalysis::calcZeroHeuristics(BasicBlock *BB) {
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;