[AArch64] Simplify legalizer info for G_JUMP_TABLE and G_BRJT. (#71962)
commitd5ab48e583c843393a86a4e166007688baeb1263
authorCraig Topper <craig.topper@sifive.com>
Sat, 18 Nov 2023 00:44:24 +0000 (17 16:44 -0800)
committerGitHub <noreply@github.com>
Sat, 18 Nov 2023 00:44:24 +0000 (17 16:44 -0800)
tree0918f6eece2c4732db637b48bdbc1a897fb180b4
parent813aaf39f94609a46f38f1e3a15a763a2cc0d2cf
[AArch64] Simplify legalizer info for G_JUMP_TABLE and G_BRJT. (#71962)

Remove s64 as a valid type for G_JUMP_TABLE since I think it is always a
pointer?

Replace custom predicate for G_BRJT with a legalFor that checks 2 types.
llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir