[PATCH] D73057: [InstCombine] fneg(X + C) --> -C - X
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 11:03:39 PST 2020
spatel created this revision.
spatel added reviewers: mcberg2017, arsenm, cameron.mcinally.
Herald added subscribers: hiraditya, wdng, mcrosier.
Herald added a project: LLVM.
This is 1 of the potential folds uncovered by extending D72521 <https://reviews.llvm.org/D72521>.
We don't seem to do this in the backend either (unless I'm not seeing some target-specific transform).
icc and gcc (appears to be target-specific) do this transform.
https://reviews.llvm.org/D73057
Files:
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/fneg.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73057.239171.patch
Type: text/x-patch
Size: 3949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200120/1a0b6269/attachment.bin>
More information about the llvm-commits
mailing list