[PATCH] D35523: [AMDGPU] refactor WQM pass in preparation for WWM (NFCI)

Connor Abbott via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 28 14:07:07 PDT 2017


cwabbott updated this revision to Diff 108710.
cwabbott added a comment.
Herald added a subscriber: mgorny.

- Fixed style issues.
- Rebased on using setDesc() in lowerCopyInstrs()
- Reworked logic for determining safe points to transition where SCC isn't live, to make using s_or_saveexec_b64 for entering WWM possible.
- Added tests for WWM across multiple basic blocks and correct SCC handling. For the latter, I couldn't figure out how to make an IR test that exercised that path, so I made a MIR test for it.


https://reviews.llvm.org/D35523

Files:
  include/llvm/IR/IntrinsicsAMDGPU.td
  lib/Target/AMDGPU/AMDGPU.h
  lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  lib/Target/AMDGPU/CMakeLists.txt
  lib/Target/AMDGPU/SIFixSGPRCopies.cpp
  lib/Target/AMDGPU/SIFixWWMLiveness.cpp
  lib/Target/AMDGPU/SIISelLowering.cpp
  lib/Target/AMDGPU/SIInstrInfo.cpp
  lib/Target/AMDGPU/SIInstructions.td
  lib/Target/AMDGPU/SIWholeQuadMode.cpp
  test/CodeGen/AMDGPU/fix-wwm-liveness.mir
  test/CodeGen/AMDGPU/wqm.ll
  test/CodeGen/AMDGPU/wqm.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35523.108710.patch
Type: text/x-patch
Size: 42230 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170728/e140cdca/attachment.bin>


More information about the llvm-commits mailing list