[PATCH] D109523: [ARM] Remove isel patterns that start with (fneg (fma)).

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 9 09:30:14 PDT 2021


craig.topper created this revision.
craig.topper added reviewers: efriedma, spatel.
Herald added subscribers: pengfei, hiraditya, kristof.beyls.
craig.topper requested review of this revision.
Herald added a project: LLVM.

(fneg (fma X, Y, Z)) is not equivalent to (fma (fneg X), Y, (fneg Z))
unless no signed zeros fast math flag is on.

See https://reviews.llvm.org/D90901 for a similar issue on X86.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109523

Files:
  llvm/lib/Target/ARM/ARMInstrVFP.td
  llvm/test/CodeGen/ARM/GlobalISel/arm-instruction-select-combos.mir
  llvm/test/CodeGen/ARM/GlobalISel/select-pr35926.mir
  llvm/test/CodeGen/ARM/fp16-fusedMAC.ll
  llvm/test/CodeGen/ARM/fusedMAC.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109523.371628.patch
Type: text/x-patch
Size: 28611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210909/ef0c8506/attachment-0001.bin>


More information about the llvm-commits mailing list