[PATCH] D153544: [AMDGPU] Use V_FMA_MIX* more often
Mateja Marjanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 13 03:45:41 PDT 2023
matejam updated this revision to Diff 539931.
matejam added a comment.
Use selection patterns for selecting V_FMA/MAD_MIX* instead of combiners.
With combiners there is a possibility that fptrunc (fmul a, b) would be selected into fptrunc (fma a, b, 0), and some other combiner could transform it back to its original state.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153544/new/
https://reviews.llvm.org/D153544
Files:
llvm/lib/Target/AMDGPU/VOP3PInstructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/fdiv.f16.ll
llvm/test/CodeGen/AMDGPU/fdiv.f16.ll
llvm/test/CodeGen/AMDGPU/frem.ll
llvm/test/CodeGen/AMDGPU/mad-mix-lo.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153544.539931.patch
Type: text/x-patch
Size: 83758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230713/d0f46431/attachment.bin>
More information about the llvm-commits
mailing list