[llvm-branch-commits] [llvm] [AMDGPU][True16] Add regbank combiner cases to fix regression around G_SEXTLOAD (PR #198671)
Petar Avramovic via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed May 20 03:16:28 PDT 2026
================
@@ -420,14 +420,21 @@ bool AMDGPURegBankCombinerImpl::combineD16Load(MachineInstr &MI) const {
if (mi_match(
Load, MRI,
- m_GAnd(m_MInstr(SextLoad), m_Copy(m_SpecificICst(CleanHi16))))) {
+ m_GAnd(m_MInstr(SextLoad), m_Copy(m_SpecificICst(CleanHi16)))) ||
+ mi_match(Load, MRI, m_GZExt(m_MInstr(SextLoad)))) {
----------------
petar-avramovic wrote:
```suggestion
m_GAnd(m_MInstr(SextLoad), m_Copy(m_SpecificICst(CleanHi16)))) ||
mi_match(Load, MRI,
m_GZExt(m_all_of(m_SpecificType(LLT::scalar(16)),
m_MInstr(SextLoad))))) {
```
https://github.com/llvm/llvm-project/pull/198671
More information about the llvm-branch-commits
mailing list