[PATCH] D78852: [AArch64][GlobalISel] Add a post-legalizer combiner + remove undef stores

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 15:40:43 PDT 2020


dsanders added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64PostLegalizerCombiner.cpp:93
+  AU.setPreservesCFG();
+  getSelectionDAGFallbackAnalysisUsage(AU);
+  AU.addRequired<GISelKnownBitsAnalysis>();
----------------
aemerson wrote:
> @dsanders is this SelectionDAGFallbackAnalysis necessary for a combiner?
Unfortunately yes but it should be removable when fallbacks are disabled. The only thing it's doing is marking StackProtector as preserved.

When I was adding -debugify-and-strip-all I found that it's not safe to let some analysis passes run more than once and IIRC StackProtector was one of them.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78852/new/

https://reviews.llvm.org/D78852





More information about the llvm-commits mailing list