aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorSimon Moll <simon.moll@emea.nec.com>2020-03-10 16:05:31 +0100
committerSimon Moll <simon.moll@emea.nec.com>2020-03-10 16:57:02 +0100
commitd871ef4e6ade3797c73cbc54d9214513ee6c7468 (patch)
treec24685c2f200cc602edf59d251768d2b43c6d254 /llvm/lib/CodeGen/CodeGen.cpp
parentf7c4d796ba67dba27361d07a77eefde05d2e0c9c (diff)
downloadllvm-d871ef4e6ade3797c73cbc54d9214513ee6c7468.zip
llvm-d871ef4e6ade3797c73cbc54d9214513ee6c7468.tar.gz
llvm-d871ef4e6ade3797c73cbc54d9214513ee6c7468.tar.bz2
[instcombine] remove fsub to fneg hacks; only emit fneg
Summary: Rewrite the fsub-0.0 idiom to fneg and always emit fneg for fp negation. This also extends the scalarization cost in instcombine for unary operators to result in the same IR rewrites for fneg as for the idiom. Reviewed By: cameron.mcinally Differential Revision: https://reviews.llvm.org/D75467
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions