[PATCH] D155891: AMDGPU: Filter out contract flags when lowering exp

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 14:49:04 PDT 2023


arsenm created this revision.
arsenm added reviewers: AMDGPU, rampitec, foad, Pierre-vh, b-sumner.
Herald added subscribers: StephenFan, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

It is unsafe to contract the fsub into the fmul. It also increases
code size by duplicating a constant.


https://reviews.llvm.org/D155891

Files:
  llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/test/CodeGen/AMDGPU/llvm.exp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155891.542687.patch
Type: text/x-patch
Size: 22581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230720/1b75a51f/attachment.bin>


More information about the llvm-commits mailing list