[llvm-branch-commits] [llvm] [llvm-reduce] Run AssignGUIDPass when loading BC (PR #208965)
Aiden Grossman via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jul 20 08:47:11 PDT 2026
================
@@ -890,6 +892,9 @@ llvm::parseReducerWorkItem(StringRef ToolName, StringRef Filename,
if (MMM->LTOInfo->IsThinLTO && MMM->LTOInfo->EnableSplitLTOUnit)
initializeTargetInfo();
}
+
+ if (MMM->LTOInfo)
+ AssignGUIDPass::runOnModule(MMM->getModule());
----------------
boomanaiden154 wrote:
Yeah, it is a bit wonky. This is the canonical way to do this as far as I can tell though, and I'm not sure there's a better solution.
e.g.:
https://github.com/llvm/llvm-project/blob/9c024f3a83cf2469b27ae42c1a8d3ab635da3dc1/llvm/tools/opt/optdriver.cpp#L632
https://github.com/llvm/llvm-project/pull/208965
More information about the llvm-branch-commits
mailing list