aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/InstCombine/InstCombineCalls.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-02-08 01:55:39 +0000
committerAndrew Trick <atrick@apple.com>2013-02-08 01:55:39 +0000
commitd2bcda7706cc2a6caf3b4b304b39a9649c703278 (patch)
tree60d7a3256c2b87ed6f47dc6600800c964fe687ad /lib/Transforms/InstCombine/InstCombineCalls.cpp
parentdc0f8a3fd993f5db67e121b0e2c132ac4d104a24 (diff)
downloadexternal_llvm-d2bcda7706cc2a6caf3b4b304b39a9649c703278.zip
external_llvm-d2bcda7706cc2a6caf3b4b304b39a9649c703278.tar.gz
external_llvm-d2bcda7706cc2a6caf3b4b304b39a9649c703278.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r--lib/Transforms/InstCombine/InstCombineCalls.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp
index cb9ba44..64cd1bd 100644
--- a/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/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);