diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-06-04 21:20:44 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-06-04 21:20:44 +0000 |
commit | c774f8c265b7880d3a0a251b1c7ccfd78d98aedd (patch) | |
tree | ae0dd29e217c305353003223dec4597c049f53a1 /llvm/lib/Transforms | |
parent | 4c42211c6fccce7adbeb2086d7e9a6e0e3dd9ef8 (diff) | |
download | bcm5719-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.cpp | 7 |
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) { |