[PATCH] D153850: [AArch64] Use GlobalISel MatchTable Combiner Backend
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 30 12:16:35 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64O0PreLegalizerCombiner.cpp:63
+
+ static const char *getName() { return "AArch6400PreLegalizerCombiner"; }
----------------
s/00/O0/
================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64O0PreLegalizerCombiner.cpp:112
MachineIRBuilder &B) const {
+ const auto &STI = MI.getMF()->getSubtarget<AArch64Subtarget>();
CombinerHelper Helper(Observer, B, /*IsPreLegalize*/ true, KB, MDT);
----------------
I'd expect a member for subtarget (and/or you could get it from MachineIRBuilder)
================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp:409
MachineIRBuilder &B) const {
- const auto *LI =
- MI.getParent()->getParent()->getSubtarget().getLegalizerInfo();
+ const auto &STI = MI.getMF()->getSubtarget<AArch64Subtarget>();
+ const auto *LI = STI.getLegalizerInfo();
----------------
There's a subtarget member?
================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp:416
-static bool matchEXT(MachineInstr &MI, MachineRegisterInfo &MRI,
- ShuffleVectorPseudo &MatchInfo) {
+bool matchEXT(MachineInstr &MI, MachineRegisterInfo &MRI,
+ ShuffleVectorPseudo &MatchInfo) {
----------------
Why are these losing static?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153850/new/
https://reviews.llvm.org/D153850
More information about the llvm-commits
mailing list