[llvm] [AMPGPU] Emit s_singleuse_vdst instructions when a register is used multiple times in the same instruction. (PR #89601)
Scott Egerton via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 09:23:19 PDT 2024
================
@@ -114,6 +102,22 @@ class AMDGPUInsertSingleUseVDST : public MachineFunctionPass {
for (const MCRegUnit &Unit : RegUnits)
RegisterUseCount.erase(Unit);
}
+
+ for (const auto &Operand : MI.all_uses()) {
----------------
ScottEgerton wrote:
>From the point of view of this pass, I'm not sure these need special handling. The pass will treat them as regular instructions, just with a large amount of registers used.
https://github.com/llvm/llvm-project/pull/89601
More information about the llvm-commits
mailing list