[PATCH] D117765: [AMDGPU][GlobalISel] Select source modifiers for VOP3Opsel

Mirko Brkusanin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 26 10:19:46 PST 2022


mbrkusanin updated this revision to Diff 403326.
mbrkusanin added a comment.

- Refactor and updated isExtractHiElt function
- Extracted work done in one iteration for selecting modifiers into a separate function so it can be used in selectVOP3NoMods. For same reason, parts that only look through instructions are separated and done before any code that selects source modifiers.
- Added type checks in a lot of cases.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117765/new/

https://reviews.llvm.org/D117765

Files:
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
  llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-sub-mul.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-sub-neg-mul.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/fdiv.f16.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/vop3-op-sel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117765.403326.patch
Type: text/x-patch
Size: 31097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220126/d110e8f5/attachment.bin>


More information about the llvm-commits mailing list