[PATCH] D82215: [AMDGPU] Avoid redundant mode register writes
Tim Corringham via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 19 10:52:59 PDT 2020
timcorringham created this revision.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl, arsenm.
Herald added a project: LLVM.
timcorringham added reviewers: arsenm, tpr, foad.
The SIModeRegister pass attempts to generate the minimal number of
writes to the mode register. However it was failing to correctly
deal with some loops, resulting in some redundant setreg instructions
being inserted.
This change amends the pass to avoid generating these redundant
instructions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82215
Files:
llvm/lib/Target/AMDGPU/SIModeRegister.cpp
llvm/test/CodeGen/AMDGPU/mode-register.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82215.272133.patch
Type: text/x-patch
Size: 6757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200619/1884d825/attachment.bin>
More information about the llvm-commits
mailing list