[PATCH] D136663: Handling ADD|SUB U64 decomposed Pseudos not getting lowered to SDWA form
Yashwant Singh via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 27 04:53:41 PDT 2022
yassingh added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp:873
+ if (!TII->canShrink(MISucc, *MRI) &&
+ !TII->getNamedOperand(MI, AMDGPU::OpName::src1)->isReg())
return;
----------------
rampitec wrote:
> yassingh wrote:
> > rampitec wrote:
> > > This can be inline literal and still useful I suppose.
> > Sorry I don't understand, are you suggesting moving this condition to a string literal?
> I mean bailing on non-register operand limits the pass. The src1 operand can be inline literal and still convertible to sdwa form.
Earlier we were checking if the instruction is not shrinkable don't proceed. Now we are also checking whether the reason for not shrinking is src1 being an immediate operand.
Hence we are covering src1 being an inline literal(correct me if I'm wrongly assuming that inline literal means immediate operand)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136663/new/
https://reviews.llvm.org/D136663
More information about the llvm-commits
mailing list