[PATCH] D96605: AMDGPU/GlobalISel: Remove redundant G_FCANONICALIZE

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 07:08:51 PST 2021


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: arsenm, foad.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl.
Petar.Avramovic requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

G_FMINNUM_IEEE and G_FMAXNUM_IEEE are known to be never SNaN
and there is no need to quiet them using G_FCANONICALIZE.
Add post legalizer combine that deletes such G_FCANONICALIZE and
replaces its uses with input (G_FMINNUM_IEEE or G_FMAXNUM_IEEE) register.


https://reviews.llvm.org/D96605

Files:
  llvm/lib/Target/AMDGPU/AMDGPUCombine.td
  llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fcanonicalize.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96605.323322.patch
Type: text/x-patch
Size: 12996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210212/587134a5/attachment.bin>


More information about the llvm-commits mailing list