[PATCH] D155995: [AMDGPU]: Allow combining into v_dot4

Jeffrey Byrnes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 15 13:19:52 PDT 2023


jrbyrnes updated this revision to Diff 556879.
jrbyrnes added a comment.

IsSigned tracks whether or not to produce an instruction with signed behavior. In some cases, we are able to determine this based on the top-level semantics of the instruction, however, in other cases, we need more information. For such cases, we must look to the tree itself.

In cases of vectorized arithmetic reduction instructions, we typically see a widening of type. We can use the signedness of the extension to determine the signedness semantics required for the instruciton we will ultimately produce.

However, other clients of calculateByteProvider may not be producing arithmetic instructions, and, in these cases, there may be no requirement to track the signedness semantics. Thus, we do not need to fail if we are unable to detemine the signedness.

This removes the requirement that ByteProviders must determine IsSigned.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D155995

Files:
  llvm/include/llvm/CodeGen/ByteProvider.h
  llvm/lib/Target/AMDGPU/SIISelLowering.cpp
  llvm/test/CodeGen/AMDGPU/idot2.ll
  llvm/test/CodeGen/AMDGPU/idot4s.ll
  llvm/test/CodeGen/AMDGPU/idot4u.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155995.556879.patch
Type: text/x-patch
Size: 278669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230915/378e01e9/attachment-0001.bin>


More information about the llvm-commits mailing list