[test] Fix some func-attrs tests under the legacy PM
authorArthur Eubanks <aeubanks@google.com>
Tue, 27 Apr 2021 20:06:32 +0000 (13:06 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 27 Apr 2021 20:07:56 +0000 (13:07 -0700)
commit9433bacc73e92bebe7cb32358f21a4b866800cf3
tree805b6df6e6ab4f3738e8c1fbf675ac5b25f1abf8
parent932e8c3241541c0216968a0f966c495b77bf4461
[test] Fix some func-attrs tests under the legacy PM

The new PM doesn't visit declarations in CGSCC passes. These tests
aren't testing that detail, so just run them against the new PM.
llvm/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll
llvm/test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll