[PATCH] D28885: AMDGPU: Disable some fneg combines unless nsz
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 18 18:21:24 PST 2017
arsenm created this revision.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng, kzhuravl.
For -(x + y) -> (-x) + (-y), if x == -y, this would
change the result from -0.0 to 0.0. Since the fma/fmad
combine is an extension of this problem it also
fmul should be fine, and I don't think any of the unary
operators or conversions should be a problem either.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 15001 bytes
Desc: not available
More information about the llvm-commits