# llvm new-pm: Build O0 pipeline in the correct way · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/52d871844c643f396a2bddee0753d24ff71ca3bb)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 52d871844c643f396a2bddee0753d24ff71ca3bb

Requested commit: 52d871844c643f396a2bddee0753d24ff71ca3bb

Commit: 52d871844c643f396a2bddee0753d24ff71ca3bb

Tree: 05adee310cd34a85fd6ced7777d669e7442f6817

Author: Min-Yih Hsu

Committer: Min-Yih Hsu

## Message

```
llvm new-pm: Build O0 pipeline in the correct way

Use `PassBuilder::buildO0DefaultPipeline` to build pipeline for -O0
in replacement of `PassBuilder::buildPerModuleDefaultPipeline`. This
affects both normal and LTO settings.

Two redundant Passes - which were added by accident - were also removed
from LTO pipeline.

```

## Parents

- [6b3eaa62e86d2652cf0b0802d704ab16d148c2ce](https://git.cafe/gitcafe/zig/commit/6b3eaa62e86d2652cf0b0802d704ab16d148c2ce?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/52d871844c643f396a2bddee0753d24ff71ca3bb?format=markdown)
