[PATCH] D28236: InstCombine: Fold cos(-x) -> cos(x)
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 08:56:49 PST 2017
davide added a comment.
`SimplifyLibCalls.cpp` does a similar transformation (`cos(-x) -> cos(x)`).
I think we should have the logic for this simplifications in a single place, if possible, so maybe there we should unconditionally lower libc `cos()` -> `llvm.cos` and simplify here?
https://reviews.llvm.org/D28236
More information about the llvm-commits
mailing list