[PATCH] D130622: [AMDGPU][SIFoldOperands] Clear kills when folding subreg COPY
    Jay Foad via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jul 27 05:30:12 PDT 2022
    
    
  
foad added a comment.
So you start with this:
  %2:sreg_64_xexec = COPY %1.sub0_sub1:sgpr_128
  %3:sreg_64_xexec = COPY killed %1.sub2_sub3:sgpr_128
  %4:sreg_64 = COPY %2:sreg_64_xexec
and folding %2 into %4 gives this:
  %3:sreg_64_xexec = COPY killed %1.sub2_sub3:sgpr_128
  %4:sreg_64 = COPY %1.sub0_sub1:sgpr_128
but now the killed flag on the RHS of %3 is wrong. How is this handled in the normal non-subreg case?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130622/new/
https://reviews.llvm.org/D130622
    
    
More information about the llvm-commits
mailing list