Skip to content

Commit d7fb5b9

Browse files
committed
[ctx_prof] PGOCtxProfFlattener must always return PreservedAnalyses::none()
This is because it always removes instrumentation. This fixes failures detectable with extensive checks, e.g. https://lab.llvm.org/buildbot/#/builders/187/builds/987 (Related to PR #107329)
1 parent e6e857c commit d7fb5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ PreservedAnalyses PGOCtxProfFlatteningPass::run(Module &M,
315315
});
316316
auto &CtxProf = MAM.getResult<CtxProfAnalysis>(M);
317317
if (!CtxProf)
318-
return PreservedAnalyses::all();
318+
return PreservedAnalyses::none();
319319

320320
const auto FlattenedProfile = CtxProf.flatten();
321321

0 commit comments

Comments
 (0)