diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-13 18:30:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-13 18:30:09 +0000 |
commit | e5116f840eedbc3cffa31adc683b4e37d53f2c7a (patch) | |
tree | 66541d59571ba4e2413d666cd3ab8cf632c80cea /lib | |
parent | 5380d280702423990e37d0dac05c76a35ad31baa (diff) | |
download | llvm-e5116f840eedbc3cffa31adc683b4e37d53f2c7a.tar.gz llvm-e5116f840eedbc3cffa31adc683b4e37d53f2c7a.tar.bz2 llvm-e5116f840eedbc3cffa31adc683b4e37d53f2c7a.tar.xz |
remove a now-unneccesary cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCompares.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index dd2cb9ce0b..67c97d24cc 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -1003,7 +1003,7 @@ Instruction *InstCombiner::FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *Shr, // Otherwise, check to see if the bits shifted out are known to be zero. // If so, we can compare against the unshifted value: // (X & 4) >> 1 == 2 --> (X & 4) == 4. - if (Shr->hasOneUse() && cast<BinaryOperator>(Shr)->isExact()) + if (Shr->hasOneUse() && Shr->isExact()) return new ICmpInst(ICI.getPredicate(), Shr->getOperand(0), ShiftedCmpRHS); if (Shr->hasOneUse()) { |