[PATCH] D41389: [WIP][InstCombine] Missed optimization in math expression: squashing sin(asin), cos(acos)
Dmitry Venikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 05:34:48 PST 2017
Quolyk created this revision.
Quolyk added reviewers: spatel, hfinkel, davide.
Motivation: https://bugs.llvm.org/show_bug.cgi?id=35603. I have failing test on functions cos_acos_fast and sin_asin_fast. Specifically
%call = call fast double @acos(double %a)
%call = call fast double @asin(double %a)
are not erased after transform, however %call instruction is never used. I'm looking for help, as I do not know why it behaves this way.
https://reviews.llvm.org/D41389
Files:
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/cos-intrinsic.ll
test/Transforms/InstCombine/sin-intrinsic.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41389.127505.patch
Type: text/x-patch
Size: 3968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171219/1b3eb9f4/attachment.bin>
More information about the llvm-commits
mailing list