From 6651b33671c2bc76e7cc82a387842a007e185267 Mon Sep 17 00:00:00 2001 From: Jakub Staszak Date: Sun, 31 Jul 2011 05:54:04 +0000 Subject: Do not handle cases with >= and <= predicates. llvm-svn: 136588 --- llvm/lib/Analysis/BranchProbabilityInfo.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Analysis/BranchProbabilityInfo.cpp b/llvm/lib/Analysis/BranchProbabilityInfo.cpp index 9e613ba24ea..da99f28e6e2 100644 --- a/llvm/lib/Analysis/BranchProbabilityInfo.cpp +++ b/llvm/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; -- cgit v1.2.3