[PATCH] D51345: AMDGPU: Shrink insts to fold immediates

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 28 04:52:42 PDT 2018


arsenm created this revision.
arsenm added a reviewer: rampitec.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.

This needs to be done in the SSA fold operands
pass to be effective, so there is a bit of overlap
with SIShrinkInstructions but I don't think this
 is practically avoidable.


https://reviews.llvm.org/D51345

Files:
  lib/Target/AMDGPU/SIFoldOperands.cpp
  lib/Target/AMDGPU/SIInstrInfo.cpp
  lib/Target/AMDGPU/SIInstrInfo.h
  lib/Target/AMDGPU/SIShrinkInstructions.cpp
  test/CodeGen/AMDGPU/fold-immediate-operand-shrink-with-carry.mir
  test/CodeGen/AMDGPU/fold-immediate-operand-shrink.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51345.162827.patch
Type: text/x-patch
Size: 25188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180828/3f1dc033/attachment.bin>


More information about the llvm-commits mailing list