[PATCH] D157564: [MCP] Invalidate copy for super register in copy source

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 9 19:20:21 PDT 2023


lkail added a comment.

  5: USE r6
  6: r1:4 = COPY r6:9

Hi @jrbyrnes , do you know why MCP fails to invalidate `r7:r9` at label 5? In my view, when we are invalidating `r6` at label 5, we should also find the copy involving def or use of r6 which is label 6, and invalidate the regunits of both src operands(`r6:r9`) and dest operands(`r1:r4`), which is what `invalidateRegister` doing.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157564



More information about the llvm-commits mailing list