diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-09 18:38:20 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-09 18:38:20 +0000 |
commit | 78f8ef42173a3a9867ed789073d4ddc652fb7ff2 (patch) | |
tree | b2c859883f471f5d77bfea9f67a4ca79f61ab44c /lib/Transforms/InstCombine/InstCombineCalls.cpp | |
parent | 874b863f2ab9158db6f7f1b773b77e6334e31c41 (diff) | |
download | llvm-78f8ef42173a3a9867ed789073d4ddc652fb7ff2.tar.gz llvm-78f8ef42173a3a9867ed789073d4ddc652fb7ff2.tar.bz2 llvm-78f8ef42173a3a9867ed789073d4ddc652fb7ff2.tar.xz |
instcombine: merge the functions that remove dead allocas and dead mallocs/callocs/...
This patch removes ~70 lines in InstCombineLoadStoreAlloca.cpp and makes both functions a bit more aggressive than before :)
In theory, we can be more aggressive when removing an alloca than a malloc, because an alloca pointer should never escape, but we are not taking advantage of this anyway
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index f74cff85c6..c1d9d01c8d 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -880,7 +880,7 @@ static IntrinsicInst *FindInitTrampoline(Value *Callee) { // Instruction *InstCombiner::visitCallSite(CallSite CS) { if (isAllocLikeFn(CS.getInstruction())) - return visitMalloc(*CS.getInstruction()); + return visitAllocSite(*CS.getInstruction()); bool Changed = false; |