[PATCH] D49605: AMDGPU: Fix implementation of isCanonicalized

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 20 09:29:02 PDT 2018


arsenm created this revision.
arsenm added reviewers: rampitec, scanon, b-sumner.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

If denormals are enabled, denormals are canonical.
Also fix a few other issues. minnum/maxnum are supposed
to canonicalize. Temporarily improve workaround for the
instruction behavior change in gfx9.

Handle selects and fcopysign.

The tests were also largely broken, since they were
checking for a flush used on


https://reviews.llvm.org/D49605

Files:
  lib/Target/AMDGPU/SIISelLowering.cpp
  lib/Target/AMDGPU/SIISelLowering.h
  test/CodeGen/AMDGPU/fcanonicalize-elimination.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49605.156516.patch
Type: text/x-patch
Size: 29023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180720/87da2e26/attachment.bin>


More information about the llvm-commits mailing list