[PATCH] D62448: [X86] Combine fminnum/fmaxnum with non-nan operand to fmin/fmax

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 25 08:23:36 PDT 2019


nikic created this revision.
nikic added reviewers: spatel, RKSimon, craig.topper.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

If we have a known non-nan operand, place it in the second operand of fmin/fmax that is returned if either operand is nan.


Repository:
  rL LLVM

https://reviews.llvm.org/D62448

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/extract-fp.ll
  llvm/test/CodeGen/X86/fmaxnum.ll
  llvm/test/CodeGen/X86/fminnum.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62448.201400.patch
Type: text/x-patch
Size: 8953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190525/16bb5f42/attachment.bin>


More information about the llvm-commits mailing list