diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-20 05:32:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-20 05:32:14 +0000 |
commit | 047542669a20505fc7c5f2d93caa5610aa3db2c5 (patch) | |
tree | 7c18e3af29531a9d610d5c7b3309062ecea964e1 /include | |
parent | a78130c3207e59bfb2ec0b77ca3f48677685d9ae (diff) | |
download | llvm-047542669a20505fc7c5f2d93caa5610aa3db2c5.tar.gz llvm-047542669a20505fc7c5f2d93caa5610aa3db2c5.tar.bz2 llvm-047542669a20505fc7c5f2d93caa5610aa3db2c5.tar.xz |
move some select simplifications out out instcombine into
inst simplify. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/InstructionSimplify.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h index 13314e6ea0..f47e740a74 100644 --- a/include/llvm/Analysis/InstructionSimplify.h +++ b/include/llvm/Analysis/InstructionSimplify.h @@ -46,6 +46,10 @@ namespace llvm { Value *SimplifyFCmpInst(unsigned Predicate, Value *LHS, Value *RHS, const TargetData *TD = 0); + /// SimplifySelectInst - Given operands for a SelectInst, see if we can fold + /// the result. If not, this returns null. + Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal, + const TargetData *TD = 0); /// SimplifyGEPInst - Given operands for an GetElementPtrInst, see if we can /// fold the result. If not, this returns null. |