diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-02 17:34:30 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-02 17:34:30 +0000 |
commit | d133591a7e6804e7cb59b4b003f94c8f02b5f90a (patch) | |
tree | c727d53647aa300cae12ce95d0dc0a93fe0bdc8f /llvm/lib/Transforms/InstCombine/InstCombineInternal.h | |
parent | ba28263b03b0f13045098122af974c21e20b2aab (diff) | |
download | bcm5719-llvm-d133591a7e6804e7cb59b4b003f94c8f02b5f90a.tar.gz bcm5719-llvm-d133591a7e6804e7cb59b4b003f94c8f02b5f90a.zip |
[InstCombine] Remove redundant combine from visitAnd
As far as I can tell this combine is fully handled by SimplifyDemandedInstructionBits.
I was only looking at this because it is the only user of APIntOps::isShiftedMask which is itself broken. As demonstrated by r299187. I was going to fix isShiftedMask and needed to make sure we had coverage for the new cases it would expose to this combine. But looks like we can nuke it instead.
Differential Revision: https://reviews.llvm.org/D31543
llvm-svn: 299337
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineInternal.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h index 6e89c58b282..6bf9647061f 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h @@ -653,8 +653,6 @@ private: Instruction *OptAndOp(Instruction *Op, ConstantInt *OpRHS, ConstantInt *AndRHS, BinaryOperator &TheAnd); - Value *FoldLogicalPlusAnd(Value *LHS, Value *RHS, ConstantInt *Mask, - bool isSub, Instruction &I); Value *insertRangeTest(Value *V, const APInt &Lo, const APInt &Hi, bool isSigned, bool Inside); Instruction *PromoteCastOfAllocation(BitCastInst &CI, AllocaInst &AI); |