[Passes] Run GlobalsAA before LICM during LTO in new PM.
authorFlorian Hahn <flo@fhahn.com>
Thu, 13 May 2021 11:53:05 +0000 (12:53 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 13 May 2021 12:11:18 +0000 (13:11 +0100)
commit860b37526ae188d02e2dbf68a006eb26f936b5eb
tree68ee311330dd6a1ce46dc5a4bcdc2851afb5f1a8
parent797e580db9837839ab11711733b5de52249f187c
[Passes] Run GlobalsAA before LICM during LTO in new PM.

This patch adjusts the LTO pipeline in the new PM to run GlobalsAA
before LICM to match the legacy PM.

This fixes a regression where the new PM failed to vectorize loops that
require hoisting/sinking by LICM depending on GlobalsAA info.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D102345
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Other/new-pm-lto-defaults.ll
llvm/test/Transforms/PhaseOrdering/AArch64/globals-aa-required-for-vectorization.ll