summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-06-04 21:20:44 +0000
committerSanjay Patel <spatel@rotateright.com>2016-06-04 21:20:44 +0000
commitc774f8c265b7880d3a0a251b1c7ccfd78d98aedd (patch)
treeae0dd29e217c305353003223dec4597c049f53a1 /llvm/lib/Transforms
parent4c42211c6fccce7adbeb2086d7e9a6e0e3dd9ef8 (diff)
downloadbcm5719-llvm-c774f8c265b7880d3a0a251b1c7ccfd78d98aedd.tar.gz
bcm5719-llvm-c774f8c265b7880d3a0a251b1c7ccfd78d98aedd.zip
clean-up; NFC
llvm-svn: 271807
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 31451747c2e..0f119bfada8 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -2439,15 +2439,14 @@ Instruction *InstCombiner::visitICmpInstWithCastAndCast(ICmpInst &ICI) {
}
// If we aren't dealing with a constant on the RHS, exit early.
- ConstantInt *CI = dyn_cast<ConstantInt>(ICI.getOperand(1));
+ auto *CI = dyn_cast<ConstantInt>(ICI.getOperand(1));
if (!CI)
return nullptr;
// Compute the constant that would happen if we truncated to SrcTy then
- // reextended to DestTy.
+ // re-extended to DestTy.
Constant *Res1 = ConstantExpr::getTrunc(CI, SrcTy);
- Constant *Res2 = ConstantExpr::getCast(LHSCI->getOpcode(),
- Res1, DestTy);
+ Constant *Res2 = ConstantExpr::getCast(LHSCI->getOpcode(), Res1, DestTy);
// If the re-extended constant didn't change...
if (Res2 == CI) {
OpenPOWER on IntegriCloud