[PATCH] D134343: [TwoAddrInst] Emit COPYs for undef REG_SEQUENCE operands if used in inst with early-clobber defs

Abinav Puthan Purayil via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 21 02:57:58 PDT 2022


abinavpp created this revision.
abinavpp added reviewers: arsenm, foad, rampitec, yaxunl, dmgreen.
Herald added subscribers: kosarev, mstorsjo, kerbowa, hiraditya, jvesely.
Herald added a project: All.
abinavpp requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

We can have REG_SEQUENCE with IMPLICIT_DEF subregs that are used in
early-clobber instructions. TwoAddrInst should emit a copy for them when
trying to remove the REG_SEQUENCE so that regalloc doesn't assign
overlapping registers.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134343

Files:
  llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
  llvm/test/CodeGen/AMDGPU/twoaddr-mad-gfx11.mir
  llvm/test/CodeGen/Thumb2/mve-laneinterleaving-cost.ll
  llvm/test/CodeGen/Thumb2/mve-satmul-loops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134343.461831.patch
Type: text/x-patch
Size: 12610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220921/f9e73778/attachment-0001.bin>


More information about the llvm-commits mailing list