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 | 9bd7fdff581323040f322a9d5c0ac450ddda9cc5 (patch) | |
tree | d1da5a145cb06a9c16efa05d70a35873d829acd3 /llvm/lib | |
parent | b86070933ff8f52a4770fca5976feea765b169ef (diff) | |
download | bcm5719-llvm-9bd7fdff581323040f322a9d5c0ac450ddda9cc5.tar.gz bcm5719-llvm-9bd7fdff581323040f322a9d5c0ac450ddda9cc5.zip |
remove a now-unneccesary cast.
llvm-svn: 125464
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index dd2cb9ce0b2..67c97d24cc8 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/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()) { |