[PATCH] D22423: AMDGPU: Fix verifier error from partially undef copy

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 15 13:56:11 PDT 2016


arsenm created this revision.
arsenm added a reviewer: MatzeB.
arsenm added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: kzhuravl, arsenm, MatzeB.

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.


https://reviews.llvm.org/D22423

Files:
  lib/Target/AMDGPU/SIInstrInfo.cpp
  test/CodeGen/AMDGPU/undefined-subreg-liverange.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22423.64193.patch
Type: text/x-patch
Size: 4210 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160715/ecd46802/attachment.bin>


More information about the llvm-commits mailing list