aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/InstructionSimplify.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-12-21 14:00:22 +0000
committerDuncan Sands <baldrick@free.fr>2010-12-21 14:00:22 +0000
commit82fdab335881cd90f8f7ab3ad1f1ca0bb3ee886a (patch)
tree54e119bba950fa5f5c29a04fc3cc105c6650dbc1 /include/llvm/Analysis/InstructionSimplify.h
parent9bd2c2e63caf33940c447708aa7078fe7513d86a (diff)
Pull a few more simplifications out of instcombine (there are still
plenty left though!), in particular for multiplication. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/InstructionSimplify.h')
-rw-r--r--include/llvm/Analysis/InstructionSimplify.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h
index 4d41cb580b..c2812dfd25 100644
--- a/include/llvm/Analysis/InstructionSimplify.h
+++ b/include/llvm/Analysis/InstructionSimplify.h
@@ -39,6 +39,11 @@ namespace llvm {
Value *SimplifyAndInst(Value *LHS, Value *RHS, const TargetData *TD = 0,
const DominatorTree *DT = 0);
+ /// SimplifyMulInst - Given operands for a Mul, see if we can
+ /// fold the result. If not, this returns null.
+ Value *SimplifyMulInst(Value *LHS, Value *RHS, const TargetData *TD = 0,
+ const DominatorTree *DT = 0);
+
/// SimplifyOrInst - Given operands for an Or, see if we can
/// fold the result. If not, this returns null.
Value *SimplifyOrInst(Value *LHS, Value *RHS, const TargetData *TD = 0,