G_JUMP_TABLE and G_BRJT appear from translation of switch statement.
Select these two instructions for MIPS32, both pic and non-pic.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D65861
[MIPS GlobalISel] Select jump_table and brjt ClosedPublic Authored by Petar.Avramovic on Aug 7 2019, 4:56 AM.
Details Summary G_JUMP_TABLE and G_BRJT appear from translation of switch statement.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Aug 7 2019, 7:17 AM Closed by commit rL368274: [MIPS GlobalISel] Select jump_table and brjt (authored by Petar.Avramovic). · Explain WhyAug 8 2019, 3:20 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 213853 lib/Target/Mips/MipsInstructionSelector.cpp
lib/Target/Mips/MipsLegalizerInfo.cpp
lib/Target/Mips/MipsRegisterBankInfo.cpp
test/CodeGen/Mips/GlobalISel/instruction-select/jump_table_and_brjt.mir
test/CodeGen/Mips/GlobalISel/legalizer/jump_table_and_brjt.mir
test/CodeGen/Mips/GlobalISel/llvm-ir/jump_table_and_brjt.ll
test/CodeGen/Mips/GlobalISel/regbankselect/jump_table_and_brjt.mir
|