Introduce IntImmLeaf version of PatLeaf immSExt16 for 32-bit immediates.
Change immSExt16 with imm32SExt16 for addiu.
This keeps same behavior for SDAG and allows for GlobalISel selectImpl
to select 'G_CONSTANT imm' + G_ADD into ADDIu when 32-bit imm satisfies
imm32SExt16 predicate: sign extending 16 low bits of imm is equal to imm.
Details
Details
- Reviewers
atanasyan petarj - Commits
- rGdda8e9554071: [MIPS GlobalISel] Select addiu
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
llvm/lib/Target/Mips/MipsInstrInfo.td | ||
---|---|---|
1268 | It's unrelated to this patch but probably this comment should say about "8-bit sign extended". |
It's unrelated to this patch but probably this comment should say about "8-bit sign extended".