[polly][NewPM][test] Fix polly tests under -enable-new-pm
authorArthur Eubanks <aeubanks@google.com>
Thu, 7 Jan 2021 22:01:04 +0000 (14:01 -0800)
committerArthur Eubanks <aeubanks@google.com>
Tue, 19 Jan 2021 20:38:58 +0000 (12:38 -0800)
commitcabe1b11243740d39c0b49c10a8ce86001b1011c
tree86184dd9ae2f76c6710022438acbff734c264b00
parent27afc091e2c0caa954326129adb86987d1b41c91
[polly][NewPM][test] Fix polly tests under -enable-new-pm

In preparation for turning on opt's -enable-new-pm by default, this pins
uses of passes via the legacy "opt -passname" with pass names beginning
with "polly-" and "polyhedral-info" to the legacy PM. Many of these
tests use -analyze, which isn't supported in the new PM.

(This doesn't affect uses of "opt -passes=passname").

rL240766 accidentally removed `-polly-prepare` in
phi_not_grouped_at_top.ll, and it also doesn't use the output of
-analyze.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D94266
llvm/tools/opt/opt.cpp
polly/test/ScopInfo/phi_not_grouped_at_top.ll