aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine
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 /test/Transforms/InstCombine
parentdc0f8a3fd993f5db67e121b0e2c132ac4d104a24 (diff)
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 'test/Transforms/InstCombine')
-rw-r--r--test/Transforms/InstCombine/intrinsics.ll16
1 files changed, 2 insertions, 14 deletions
diff --git a/test/Transforms/InstCombine/intrinsics.ll b/test/Transforms/InstCombine/intrinsics.ll
index 6bfea72f41..f334b3b1e9 100644
--- a/test/Transforms/InstCombine/intrinsics.ll
+++ b/test/Transforms/InstCombine/intrinsics.ll
@@ -152,8 +152,8 @@ entry:
ret void
; CHECK: @powi
; CHECK: %A = fdiv double 1.0{{.*}}, %V
-; CHECK: store volatile double %A,
-; CHECK: store volatile double 1.0
+; CHECK: store volatile double %A,
+; CHECK: store volatile double 1.0
; CHECK: store volatile double %V
}
@@ -256,15 +256,3 @@ define i32 @cttz_select(i32 %Value) nounwind {
; CHECK: @cttz_select
; CHECK: select i1 %tobool, i32 %cttz, i32 32
}
-
-; Test that SimplifyCall is getting invoked by InstCombine
-declare float @llvm.fabs.f32(float) nounwind readnone
-define float @simplify_idempotent(float %a) {
-; CHECK: @simplify_idempotent
-; CHECK: fabs
-; CHECK-NOT: fabs
- %a0 = call float @llvm.fabs.f32(float %a)
- %a1 = call float @llvm.fabs.f32(float %a0)
-
- ret float %a1
-} \ No newline at end of file