[PATCH] D80633: DAG: Handle expanding strict_fsub into fneg and strict_fadd

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 07:33:14 PDT 2020


arsenm created this revision.
arsenm added reviewers: uweigand, craig.topper, cameron.mcinally, kpn.
Herald added subscribers: kerbowa, hiraditya, tpr, nhaehnle, wdng, jvesely.
Herald added a project: LLVM.
arsenm updated this revision to Diff 266530.
arsenm added a comment.

Fix losing flags


The AMDGPU handling of f16 vectors is terrible still since it gets
scalarized even when the vector operation is legal.


https://reviews.llvm.org/D80633

Files:
  llvm/include/llvm/CodeGen/SelectionDAG.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  llvm/lib/Target/AMDGPU/VOP2Instructions.td
  llvm/test/CodeGen/AMDGPU/strict_fsub.f16.ll
  llvm/test/CodeGen/AMDGPU/strict_fsub.f32.ll
  llvm/test/CodeGen/AMDGPU/strict_fsub.f64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80633.266530.patch
Type: text/x-patch
Size: 25539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200527/642f2511/attachment.bin>


More information about the llvm-commits mailing list