[PATCH] D104179: [NFC] [LoopIdiom] [LoopNest] Create LoopIdiomRecognize as a LoopNestPass

Whitney Tsang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 25 07:05:03 PDT 2021


Whitney added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp:348
+  const auto *DL =
+      &LN.getOutermostLoop().getHeader()->getModule()->getDataLayout();
+  OptimizationRemarkEmitter ORE(LN.getOutermostLoop().getHeader()->getParent());
----------------
Function *F = LN.getParent();
const auto *DL = &F->getModule()->getDataLayout();
OptimizationRemarkEmitter ORE(F);


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104179



More information about the llvm-commits mailing list