[PATCH] D132447: AMDGPU: Add a pass to fix SGPR liveness
Ruiling, Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 23 01:36:31 PDT 2022
ruiling created this revision.
ruiling added reviewers: foad, critson, nhaehnle.
Herald added subscribers: kosarev, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, mgorny, jvesely, kzhuravl, arsenm.
Herald added a project: All.
ruiling requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
Sometime, we may get a SGPR-PHI with only one meaningful value from
dominator and undefined in another predecessor. The problem with
such pattern is the SGPR might be overwritten in the undefined
predecessor. The pass added here is to make the SGPR also alive in the
originally dead predecessors.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132447
Files:
llvm/lib/Target/AMDGPU/AMDGPU.h
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Target/AMDGPU/CMakeLists.txt
llvm/lib/Target/AMDGPU/SIFixSGPRLiveness.cpp
llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
llvm/test/CodeGen/AMDGPU/sgpr-liveness.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132447.454739.patch
Type: text/x-patch
Size: 11618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220823/09b3943c/attachment.bin>
More information about the llvm-commits
mailing list