We cannot move wwm over exec copies because the exec register needs an exact exec mask.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Paths 
  |  Differential  D76232  
[AMDGPU] Fix whole wavefront mode ClosedPublic Authored by Flakebi on Mar 16 2020, 8:48 AM. 
Details 
 Summary We cannot move wwm over exec copies because the exec register needs an exact exec mask. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Mar 17 2020, 3:37 AM Closed by commit rG6e29846b29d2: [AMDGPU] Fix whole wavefront mode (authored by sebastian-ne).  ·  Explain WhyMar 17 2020, 9:39 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 250803 llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
 llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
 llvm/test/CodeGen/AMDGPU/wqm.mir
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Can't this whole function be replaced with SIInstrInfo::mayReadExec?