InlineSpiller: Fix copy identification bugs in isCopyOfBundle
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 18 Jul 2023 00:03:46 +0000 (20:03 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 18 Jul 2023 00:05:56 +0000 (20:05 -0400)
commit825b7f0ca5f2211ec3c93139f98d1e24048c225c
treef0f9cd9074e5fd414d459a6540d7a91a851922aa
parent04185f0b0b52a906b67c96b654fd35f25f18328d
InlineSpiller: Fix copy identification bugs in isCopyOfBundle

Noticed by inspection of
b7836d856206ec39509d42529f958c920368166b. This was checking if the
first instruction was a copy, not the current MI. It should fully
respect the isCopyInstr result. Hopefully this fixes a reported
regression which we can extract a test from.
llvm/lib/CodeGen/InlineSpiller.cpp