LiveIntervals: Fix handleMove asserting on BUNDLE
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 19 Jul 2019 19:32:00 +0000 (19:32 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 19 Jul 2019 19:32:00 +0000 (19:32 +0000)
commitc14334e95924b875a70eb16b0f53a1820239d9cb
treefa5412fa350828b683c2f625bd69bd84e658c79d
parenta3c83b7511a56a1bc79784078caab0ad7f8c7abb
LiveIntervals: Fix handleMove asserting on BUNDLE

The top-level BUNDLE instruction should behave as an ordinary
instruction. It is supposed to have all relevant registers as implicit
operands. Moving it should work as any other instruction. I believe
the assert intended to avoid moving instructions inside bundles.

llvm-svn: 366605
llvm/lib/CodeGen/LiveIntervals.cpp
llvm/test/CodeGen/AMDGPU/scheduler-handle-move-bundle.mir [new file with mode: 0644]