[PATCH] D134802: [llvm-stress] Remove dependency to legacy pass manager

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 28 09:18:02 PDT 2022


bjope planned changes to this revision.
bjope added inline comments.


================
Comment at: llvm/tools/llvm-stress/llvm-stress.cpp:767
+  ModuleAnalysisManager MAM;
+  PrintModulePass(Out->os()).run(*M.get(), MAM);
+
----------------
aeubanks wrote:
> can't we just `WriteBitcodeToFile` without a pass manager?
Oh, yes. Why didn't I go all the way like that. No need to create the PrintModulePass just to do the WriteBircodeToFile. It should be possible to just call that helper directly. I'll try to update the patch that way.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134802



More information about the llvm-commits mailing list