[llvm] [AMDGPU][True16] Legalize S16 for stores & loads in GlobalISel when True16 is enabled (PR #176963)
Domenic Nutile via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 08:33:34 PDT 2026
================
@@ -418,6 +418,18 @@ bool AMDGPURegBankCombinerImpl::combineD16Load(MachineInstr &MI) const {
return false;
}
+ if (Load->getOpcode() == AMDGPU::G_ZEXT) {
+ SextLoad = getDefIgnoringCopies(Load->getOperand(1).getReg(), MRI);
+ if (!SextLoad || SextLoad->getOpcode() != AMDGPU::G_SEXTLOAD)
----------------
saxlungs wrote:
I ended up refactoring this area a bit, please give the new version a look when you can!
https://github.com/llvm/llvm-project/pull/176963
More information about the llvm-commits
mailing list