]> granicus.if.org Git - llvm/commit
AMDGPU: Fix verifier error from partially undef copy
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 15 Jul 2016 22:32:02 +0000 (22:32 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 15 Jul 2016 22:32:02 +0000 (22:32 +0000)
commite066e581b19debdbff44d0ad02e1fabb55ef7413
tree2bee9a97596f4ab55c3b998dc0a9b03871991360
parent467260108e37a4a1310f5e2134ac00242a71a6fc
AMDGPU: Fix verifier error from partially undef copy

In this situation:

%VGPR2<def> = BUFFER_LOAD_DWORD_OFFSET %SGPR8_SGPR9_SGPR10_SGPR11,
%VGPR7<def,tied3> = V_MAC_F32_e32 %VGPR0<undef>, %VGPR1<kill>, %VGPR7<kill,tied0>, %EXEC<imp-use>
%VGPR3_VGPR4_VGPR5_VGPR6<def> = COPY %VGPR0_VGPR1_VGPR2_VGPR3
%VGPR4<def> = COPY %VGPR2

The copy for VGPR1 -> VGPR4 was an error from reading undefined VGPR1,
but VGPR4 is defined immediately after this copy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275635 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.cpp
test/CodeGen/AMDGPU/undefined-subreg-liverange.ll