llvm-project
9c2e6772 - [X86][GlobalISel] Ignore non-vregs in regbank mapping (#182880)

Commit
10 days ago
[X86][GlobalISel] Ignore non-vregs in regbank mapping (#182880) `X86RegisterBankInfo`'s regbank-mapping helpers work under the assumption that every register operand was a typed virtual register. This caused `RegBankSelect` crashes when such operands reached these helpers: * `getInstrPartialMappingIdxs` called `MRI.getType()` on a non-vreg operand. * `getInstrValueMapping` then called `getValueMapping(PMI_None, ...)` for it. Skip non-virtual register operands in both helpers. This keeps non-vregs out of LLT/mapping logic while still mapping real vreg operands. Fixes https://github.com/llvm/llvm-project/issues/182735
Author
Parents
Loading