[llvm-branch-commits] [llvm] [AMDGPU][True16] Keep hi16 in 32-to-16-bit VGPR-to-SGPR copies (PR #239247)
Krzysztof Drewniak via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Nov 5 13:59:37 PST 2026
================
@@ -8942,7 +8942,11 @@ void SIInstrInfo::moveToVALUImpl(
return;
} else if (RI.getMatchingSuperRegClass(SrcRegRC, NewDstRC,
AMDGPU::lo16)) {
- Inst.getOperand(1).setSubReg(AMDGPU::lo16);
+ // Read the low half, unless the copy already reads a 16-bit
----------------
krzysz00 wrote:
I don't think we need this comment
https://github.com/llvm/llvm-project/pull/239247
More information about the llvm-branch-commits
mailing list