[PATCH] D133840: AMDGPU: Add a pass to rewrite certain undef in PHI

Ruiling, Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 23:20:30 PDT 2022


ruiling updated this revision to Diff 460299.
ruiling added a comment.

Move the pass after SIAnnotateControlFlow.
Simplify the backedge undef logic since joining divergent threads at loop header has been handled by SIAnnotateControlFlow.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133840/new/

https://reviews.llvm.org/D133840

Files:
  llvm/lib/Target/AMDGPU/AMDGPU.h
  llvm/lib/Target/AMDGPU/AMDGPURewriteUndefForPHI.cpp
  llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  llvm/lib/Target/AMDGPU/CMakeLists.txt
  llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
  llvm/test/CodeGen/AMDGPU/rewrite-undef-for-phi.ll
  llvm/test/CodeGen/AMDGPU/uniform-phi-with-undef.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133840.460299.patch
Type: text/x-patch
Size: 16318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220915/1e44c2a9/attachment.bin>


More information about the llvm-commits mailing list