Eliminate uses of %prcontext.

- I'd appreciate it if someone else eyeballs my changes to make sure I captured
   the intent of the test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81083 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-09-05 11:35:16 +00:00
parent 8c042c2337
commit 31ab6e3364
16 changed files with 67 additions and 27 deletions
@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -simplify-libcalls-halfpowr | llvm-dis | %prcontext {mul float} 1 | grep {mul float} | count 8
; RUN: opt -simplify-libcalls-halfpowr %s | llvm-dis | FileCheck %s
define float @__half_powrf4(float %f, float %g) nounwind readnone {
entry:
@@ -12,6 +12,11 @@ bb: ; preds = %entry
bb1: ; preds = %bb, %entry
%f_addr.0 = phi float [ %1, %bb ], [ %f, %entry ] ; <float> [#uses=1]
%2 = fmul float %f_addr.0, %g ; <float> [#uses=1]
; CHECK: fmul float %f_addr
; CHECK: fmul float %f_addr
; CHECK: fmul float %f_addr
; CHECK: fmul float %f_addr
ret float %2
}