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

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 23:33:27 PST 2023


Pierre-vh added a comment.

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


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