[PATCH] D71816: [DAGCombiner] Add combine for (not (strict_fsetcc)) to create a strict_fsetcc with the opposite condition.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 22 11:36:11 PST 2019
craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
craig.topper added reviewers: uweigand, andrew.w.kaylor, kpn, pengfei, LiuChen3.
Unlike the existing code that I modified here, I only handle the
case where the strict_fsetcc has a single use. Not sure exactly
how to handle multiples uses.
Testing this on X86 is hard because we already have a other
combines that rid of lowered version of the integer setcc that
this xor will eventually become. So this combine really just
saves a bunch of extra nodes being created. Not sure about other
targets.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71816
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/fp-strict-scalar-cmp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71816.235070.patch
Type: text/x-patch
Size: 5488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191222/6d3c8079/attachment.bin>
More information about the llvm-commits
mailing list