[all-commits] [llvm/llvm-project] 0ef404: [llvm-stress] Remove dependency to legacy pass man...

Björn Pettersson via All-commits all-commits at lists.llvm.org
Wed Sep 28 23:25:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ef404a9f993047adbbd11a6c98114eec08c75bd
      https://github.com/llvm/llvm-project/commit/0ef404a9f993047adbbd11a6c98114eec08c75bd
  Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    M llvm/tools/llvm-stress/llvm-stress.cpp

  Log Message:
  -----------
  [llvm-stress] Remove dependency to legacy pass manager

This patch removes the dependency to the legacy pass manager when
building llvm-stress.

Instead of setting up a pass manager at all we just run verifyModule()
to check that the generated IR satisfies the verifier, and then
we use Module::print() to output the IR. No need to setup passes and
populating a pass manager since we aren't doing anything more fancy
than that.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D134802




More information about the All-commits mailing list