diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-12-28 14:23:29 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-12-28 14:23:29 +0000 |
commit | e949aa1c91132094a9073c82a8aef729fa8c9eca (patch) | |
tree | a94456b93a2b3d12296e4564cffa817508acdd5a /include | |
parent | c98bd9f1a79adffe73acd337b6f7f9afa6bae078 (diff) |
Teach instsimplify to use the constant folder where appropriate for
constant folding calls. Add the initial tests for this which show that
now instsimplify can simplify blindingly obvious code patterns expressed
with both intrinsics and library calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/InstructionSimplify.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h index dd643a0469..e70bfe2860 100644 --- a/include/llvm/Analysis/InstructionSimplify.h +++ b/include/llvm/Analysis/InstructionSimplify.h @@ -211,7 +211,7 @@ namespace llvm { /// the result. /// /// If this call could not be simplified returns null. - Value *SimplifyCall(Value *F, User::op_iterator ArgBegin, + Value *SimplifyCall(Value *V, User::op_iterator ArgBegin, User::op_iterator ArgEnd, const DataLayout *TD = 0, const TargetLibraryInfo *TLI = 0, const DominatorTree *DT = 0); @@ -220,7 +220,7 @@ namespace llvm { /// result. /// /// If this call could not be simplified returns null. - Value *SimplifyCall(Value *F, ArrayRef<Value *> Args, + Value *SimplifyCall(Value *V, ArrayRef<Value *> Args, const DataLayout *TD = 0, const TargetLibraryInfo *TLI = 0, const DominatorTree *DT = 0); |