[PATCH] D135967: [StructurizeCFG][DebugInfo] Maintain DILocations in the branches created by StructurizeCFG

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 08:48:17 PDT 2022


arsenm added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/StructurizeCFG.cpp:865
   FlowSet.insert(Flow);
+  TermDL[Flow] = TermDL[Dominator];
   DT->addNewBlock(Flow, Dominator);
----------------
Why can't you just directly set the debug info when the terminator is created?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135967



More information about the llvm-commits mailing list