summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/BranchProbabilityInfo.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-08-04 16:59:29 +0000
committerCraig Topper <craig.topper@intel.com>2017-08-04 16:59:29 +0000
commit4e22ee6745d12c935ee29cb1fbc99d753adf125f (patch)
tree85d9e5f75c2884e43dd6a18023e68630c061c8b8 /llvm/lib/Analysis/BranchProbabilityInfo.cpp
parent14fc82a1df40cdf09e969ae2b5f172d474e25d4a (diff)
downloadbcm5719-llvm-4e22ee6745d12c935ee29cb1fbc99d753adf125f.tar.gz
bcm5719-llvm-4e22ee6745d12c935ee29cb1fbc99d753adf125f.zip
[ConstantInt] Use ConstantInt::getValue instead of Constant::getUniqueInteger in a few places where we obviously have a ConstantInt. NFC
getUniqueInteger will ultimately call ConstantInt::getValue, but calling ConstantInt::getValue should be inlined. llvm-svn: 310069
Diffstat (limited to 'llvm/lib/Analysis/BranchProbabilityInfo.cpp')
-rw-r--r--llvm/lib/Analysis/BranchProbabilityInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/BranchProbabilityInfo.cpp b/llvm/lib/Analysis/BranchProbabilityInfo.cpp
index 3748c651fd2..6008c353a08 100644
--- a/llvm/lib/Analysis/BranchProbabilityInfo.cpp
+++ b/llvm/lib/Analysis/BranchProbabilityInfo.cpp
@@ -496,7 +496,7 @@ bool BranchProbabilityInfo::calcZeroHeuristics(const BasicBlock *BB,
if (Instruction *LHS = dyn_cast<Instruction>(CI->getOperand(0)))
if (LHS->getOpcode() == Instruction::And)
if (ConstantInt *AndRHS = dyn_cast<ConstantInt>(LHS->getOperand(1)))
- if (AndRHS->getUniqueInteger().isPowerOf2())
+ if (AndRHS->getValue().isPowerOf2())
return false;
// Check if the LHS is the return value of a library function
OpenPOWER on IntegriCloud