[PATCH] D14302: [SimplifyLibCalls] Add a new transform: tan(atan(x)) -> x
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 15:29:36 PST 2015
majnemer accepted this revision.
majnemer added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: test/Transforms/InstCombine/tan.ll:11-14
@@ +10,6 @@
+; CHECK-LABEL: define float @mytan(
+; CHECK-NEXT: entry:
+; CHECK-NEXT: %call = call float @atanf(float %x)
+; CHECK-NEXT: ret float %x
+; CHECK-NEXT: }
+
----------------
You just need a single check statement after the `CHECK-LABEL` directive, `; CHECK: ret float %x`
http://reviews.llvm.org/D14302
More information about the llvm-commits
mailing list