[PATCH] D117014: AMDGPU: Use removeAllRegUnitsForPhysReg()
Ruiling, Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 11 05:25:10 PST 2022
ruiling created this revision.
ruiling added reviewers: arsenm, foad, critson.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
ruiling requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
I met the issue here when working on something else. I don't look
at it further why I met issue here, but looks like
removeAllRegUnitsForPhysReg() is the right way.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117014
Files:
llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
Index: llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
+++ llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
@@ -1591,7 +1591,7 @@
// If we performed any kills then recompute EXEC
if (!KillInstrs.empty())
- LIS->removeRegUnit(*MCRegUnitIterator(AMDGPU::EXEC, TRI));
+ LIS->removeAllRegUnitsForPhysReg(AMDGPU::EXEC);
return true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117014.398919.patch
Type: text/x-patch
Size: 454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220111/0b4085d7/attachment.bin>
More information about the llvm-commits
mailing list