[llvm] [AMDGPU] Unused sdst writing to null (PR #133229)
Ana Mihajlovic via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 3 06:24:39 PDT 2025
================
@@ -973,11 +973,13 @@ bool SIShrinkInstructions::run(MachineFunction &MF) {
continue;
}
- if (!TII->hasVALU32BitEncoding(MI.getOpcode())) {
- // If there is no chance we will shrink it and use VCC as sdst to get
- // a 32 bit form try to replace dead sdst with NULL.
+ // If there is no chance we will shrink it and use VCC as sdst to get
+ // a 32 bit form try to replace dead sdst with NULL.
+ if (TII->isVOP3(MI.getOpcode())) {
tryReplaceDeadSDST(MI);
- continue;
+ if (!TII->hasVALU32BitEncoding(MI.getOpcode())) {
+ continue;
+ }
----------------
mihajlovicana wrote:
Skipping this check will lead to a change in a lot of tests and illegal virtual register errors in some of them
https://github.com/llvm/llvm-project/pull/133229
More information about the llvm-commits
mailing list