[llvm] 9433bac - [test] Fix some func-attrs tests under the legacy PM
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 27 13:08:19 PDT 2021
Author: Arthur Eubanks
Date: 2021-04-27T13:07:56-07:00
New Revision: 9433bacc73e92bebe7cb32358f21a4b866800cf3
URL: https://github.com/llvm/llvm-project/commit/9433bacc73e92bebe7cb32358f21a4b866800cf3
DIFF: https://github.com/llvm/llvm-project/commit/9433bacc73e92bebe7cb32358f21a4b866800cf3.diff
LOG: [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.
Added:
Modified:
llvm/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll
llvm/test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll
Removed:
################################################################################
diff --git a/llvm/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll b/llvm/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll
index 06a3004dd8ee6..e68996163b82d 100644
--- a/llvm/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll
+++ b/llvm/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -tbaa -basic-aa -function-attrs -S | FileCheck %s
+; RUN: opt < %s -aa-pipeline=tbaa,basic-aa -passes=function-attrs -S | FileCheck %s
; FunctionAttrs should make use of TBAA.
diff --git a/llvm/test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll b/llvm/test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll
index cde17f48a0fe6..9c773f852c06a 100644
--- a/llvm/test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll
+++ b/llvm/test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll
@@ -1,4 +1,3 @@
-; RUN: opt < %s -basic-aa -function-attrs -S | FileCheck %s
; RUN: opt < %s -aa-pipeline=basic-aa -passes=function-attrs -S | FileCheck %s
; CHECK: define i32 @f() #0
More information about the llvm-commits
mailing list