diff options
| author | Andrew Trick <atrick@apple.com> | 2013-02-08 01:55:39 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2013-02-08 01:55:39 +0000 |
| commit | 1bd53c367580c8c039c675bf9ac3a1406a8224e1 (patch) | |
| tree | 9766d647f05eeba4057b158175bd0f38ce045d24 /llvm/lib/Transforms | |
| parent | dfbe77cdf5c252865b939b812241a76838dd3be8 (diff) | |
| download | bcm5719-llvm-1bd53c367580c8c039c675bf9ac3a1406a8224e1.tar.gz bcm5719-llvm-1bd53c367580c8c039c675bf9ac3a1406a8224e1.zip | |
Revert "Have InstCombine call SipmlifyCall when handling calls. Test case included."
This reverts commit 3854a5d90fee52af1065edbed34521fff6cdc18d.
This causes a clang unit test to hang: vtable-available-externally.cpp.
llvm-svn: 174692
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index cb9ba44600a..64cd1bd2789 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -13,7 +13,6 @@ #include "InstCombine.h" #include "llvm/ADT/Statistic.h" -#include "llvm/Analysis/InstructionSimplify.h" #include "llvm/Analysis/MemoryBuiltins.h" #include "llvm/IR/DataLayout.h" #include "llvm/Support/CallSite.h" @@ -211,11 +210,6 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { return &CI; } - CallSite CS(&CI); - if (Value *V = SimplifyCall(CS.getCalledValue(), CS.arg_begin(), CS.arg_end(), - TD)) - return ReplaceInstUsesWith(CI, V); - IntrinsicInst *II = dyn_cast<IntrinsicInst>(&CI); if (!II) return visitCallSite(&CI); |

