[PATCH] D142192: [AMDGPU] Run unmerge combines post regbankselect

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 06:29:46 PST 2023


arsenm added a comment.

In D142192#4117252 <https://reviews.llvm.org/D142192#4117252>, @Pierre-vh wrote:

> In D142192#4115308 <https://reviews.llvm.org/D142192#4115308>, @arsenm wrote:
>
>> Does the instruction matcher try to optimize the case where the class is already VGPR and avoid introducing a new instruction?
>
> It doesn't look like it does at first glance (it just emits 3 BuildMI/AddTempRegister sequence). The copies are very likely folded out later but I'm not sure where

I’m sure they are folded out by PeepholeOpt, but as a compile time optimization we should try to avoid creating unnecessary instructions


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142192



More information about the llvm-commits mailing list