[PATCH] D86862: [NFC] [DAGCombiner] Refactor bitcast folding within fabs/fneg
Qiu Chaofan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 31 00:56:20 PDT 2020
qiucf created this revision.
qiucf added reviewers: spatel, steven.zhang, efriedma, RKSimon, jsji, craig.topper.
Herald added subscribers: llvm-commits, ecnelises, danielkiss, hiraditya.
Herald added a project: LLVM.
qiucf requested review of this revision.
`fabs` and `fneg` share a common transformation:
(fneg (bitconvert x)) -> (bitconvert (xor x sign))
(fabs (bitconvert x)) -> (bitconvert (and x ~sign))
This patch separate the code into a single method.
https://reviews.llvm.org/D86862
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86862.288899.patch
Type: text/x-patch
Size: 5121 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200831/3167313f/attachment.bin>
More information about the llvm-commits
mailing list