[NewPM] Separate out alias analysis passes in opt
authorArthur Eubanks <aeubanks@google.com>
Tue, 23 Jun 2020 23:11:59 +0000 (16:11 -0700)
committerArthur Eubanks <aeubanks@google.com>
Thu, 25 Jun 2020 15:53:57 +0000 (08:53 -0700)
commit85ff5b524e4935b9aa0838d72107f1f505684088
tree16f9df1d06146bd84b9827254185192b9be0c082
parent16501782c8d849bc1812d527dc8466574700663d
[NewPM] Separate out alias analysis passes in opt

Summary:
This somewhat matches the --aa-pipeline option, which separates out any
AA analyses to make sure they run before other passes.

Makes check-llvm failures under new PM go from 2356 -> 2303.

AA passes are not handled by PassBuilder::parsePassPipeline() but rather
PassBuilder::parseAAPipeline(), which is why this fixes some failures.

Reviewers: asbirlea, hans, ychen, leonardchan

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82488
llvm/include/llvm/Passes/PassBuilder.h
llvm/lib/Passes/PassBuilder.cpp
llvm/tools/opt/NewPMDriver.cpp