summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-04-20 22:33:54 +0000
committerSanjay Patel <spatel@rotateright.com>2017-04-20 22:33:54 +0000
commitc9485ca895a2f45b9f6b55c26ea624da8c152c5d (patch)
tree8c9a18887e3a117526721d0384f5dd2ebbe14813 /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parentdc07769c904d8e0866997f7fb57f846f183ab3d4 (diff)
downloadbcm5719-llvm-c9485ca895a2f45b9f6b55c26ea624da8c152c5d.tar.gz
bcm5719-llvm-c9485ca895a2f45b9f6b55c26ea624da8c152c5d.zip
[InstCombine] allow shl+shr demanded bits folds with splat constants
llvm-svn: 300911
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineInternal.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index 71000063ab3..978c8a3c671 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -551,9 +551,10 @@ private:
unsigned Depth, Instruction *CxtI);
/// Helper routine of SimplifyDemandedUseBits. It tries to simplify demanded
/// bit for "r1 = shr x, c1; r2 = shl r1, c2" instruction sequence.
- Value *SimplifyShrShlDemandedBits(Instruction *Lsr, Instruction *Sftl,
- const APInt &DemandedMask, APInt &KnownZero,
- APInt &KnownOne);
+ Value *SimplifyShrShlDemandedBits(
+ Instruction *Shr, const APInt &ShrOp1, Instruction *Shl,
+ const APInt &ShlOp1, const APInt &DemandedMask, APInt &KnownZero,
+ APInt &KnownOne);
/// \brief Tries to simplify operands to an integer instruction based on its
/// demanded bits.
OpenPOWER on IntegriCloud