summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-20 05:32:14 +0000
committerChris Lattner <sabre@nondot.org>2010-04-20 05:32:14 +0000
commit047542669a20505fc7c5f2d93caa5610aa3db2c5 (patch)
tree7c18e3af29531a9d610d5c7b3309062ecea964e1 /include
parenta78130c3207e59bfb2ec0b77ca3f48677685d9ae (diff)
downloadllvm-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.h4
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.