]> granicus.if.org Git - llvm/commit
LiveIntervals: Fix handleMoveUp with subreg def moving across a def
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 18 Oct 2019 23:24:25 +0000 (23:24 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 18 Oct 2019 23:24:25 +0000 (23:24 +0000)
commit8672594561920f2f52303bc653760438e57f14e1
tree0a0f9122fee13d9fa4c39ce55d636a66e8e9ba30
parentf6288975c0fc5bc468c9c8f48c468c27b4eb4f20
LiveIntervals: Fix handleMoveUp with subreg def moving across a def

If a subregister def was moved across another subregister def and
another use, the main range was not correctly updated. The end point
of the moved interval ended too early and missed the use from theh
other lanes in the subreg def.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375300 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveIntervals.cpp
test/CodeGen/AMDGPU/sched-handleMoveUp-subreg-def-across-subreg-def.mir [new file with mode: 0644]
unittests/MI/LiveIntervalTest.cpp