[PATCH] D89820: [AArch64][GlobalISel] Split post-legalizer combiner to allow for lowering at -O0
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 21 11:46:41 PDT 2020
aemerson added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64.h:63
FunctionPass *createAArch64PostLegalizeCombiner(bool IsOptNone);
+FunctionPass *createAArch64PostLegalizeLowering(bool IsOptNone);
FunctionPass *createAArch64StackTaggingPass(bool IsOptNone);
----------------
Not sure why the create functions use a verb instead of the noun, we should keep it consistent.
================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp:503
+ GISelKnownBits *KB = &getAnalysis<GISelKnownBitsAnalysis>().get(MF);
+ MachineDominatorTree *MDT =
+ IsOptNone ? nullptr : &getAnalysis<MachineDominatorTree>();
----------------
If this is a lowering pass then we may not need a dominator tree and thus IsOptNone variable plumbing through? If something needs to run only w/ optimizations that can live in the actual combiner pass.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89820/new/
https://reviews.llvm.org/D89820
More information about the llvm-commits
mailing list