[PATCH] D87415: [DAGCombiner] Fold fminnum(X, NaN) to X
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 13:48:29 PDT 2020
nikic created this revision.
nikic added reviewers: spatel, RKSimon, craig.topper.
Herald added subscribers: llvm-commits, ecnelises, hiraditya.
Herald added a project: LLVM.
nikic requested review of this revision.
If one operand to FMINNUM and FMAXNUM is NaN, then the other operand is returned. This makes NaN a neutral element for these operations, which should improve the lowerings from D87391 <https://reviews.llvm.org/D87391>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87415
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/fmaxnum.ll
llvm/test/CodeGen/X86/fminnum.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87415.290822.patch
Type: text/x-patch
Size: 4615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200909/2b0877c3/attachment.bin>
More information about the llvm-commits
mailing list