forked from OSchip/llvm-project
[test] Use -passes syntax in SROA test cases
Another step to move away from the legacy PM syntax when specifying passes in opt. Differential Revision: https://reviews.llvm.org/D118339
This commit is contained in:
parent
464be7af28
commit
bf06bc1a6d
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
; rdar://6417724
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-p1:16:16:16-p3:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture readonly, i32, i1)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64:64-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt -debugify -sroa -S < %s | FileCheck %s -check-prefix DEBUGLOC
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
; RUN: opt -passes='debugify,function(sroa)' -S < %s | FileCheck %s -check-prefix DEBUGLOC
|
||||
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-p1:16:16:16-p2:32:32-p3:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64-A2"
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
source_filename = "tmp.cpp"
|
||||
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64:64-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -use-dbg-addr -sroa -S < %s | FileCheck %s
|
||||
; RUN: opt -use-dbg-addr -passes=sroa -S < %s | FileCheck %s
|
||||
|
||||
; ModuleID = '<stdin>'
|
||||
source_filename = "newvars.c"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; Test that SROA can deal with allocas that have more than one
|
||||
; dbg.declare hanging off of it.
|
||||
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
source_filename = "/tmp/inlinesplit.cpp"
|
||||
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-apple-macosx10.15.0"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -sroa %s -S | FileCheck %s
|
||||
; RUN: opt -passes=sroa %s -S | FileCheck %s
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
||||
%foo = type { [8 x i8], [8 x i8] }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
define { i32, i32 } @test0(i32 %x, i32 %y) {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -sroa -S -o - < %s | FileCheck %s
|
||||
; RUN: opt -passes=sroa -S -o - < %s | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
declare void @llvm.assume(i1)
|
||||
declare void @llvm.lifetime.start.p0i8(i64 %size, i8* nocapture %ptr)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
%S = type { [4 x i8] }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
;
|
||||
; Make sure the llvm.access.group meta-data is preserved
|
||||
; when a load/store is replaced with another load/store by sroa
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
;
|
||||
; Make sure the llvm.access.group meta-data is preserved
|
||||
; when a load/store is replaced with another load/store by sroa
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -sroa -S < %s | FileCheck %s
|
||||
; RUN: opt -passes=sroa -S < %s | FileCheck %s
|
||||
|
||||
; This test checks that SROA does not introduce ptrtoint and inttoptr
|
||||
; casts from and to non-integral pointers. The "ni:4" bit in the
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
define i32 @test1() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
||||
target triple = "wasm32-unknown-unknown"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -S -sroa < %s | FileCheck %s
|
||||
; RUN: opt -S -passes=sroa < %s | FileCheck %s
|
||||
|
||||
%pair = type { i32, i32 }
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
@a = external global i16, align 1
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64:32"
|
||||
|
||||
%struct.test = type { %struct.basic, %struct.basic }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "E-m:e-i64:64-n32:64"
|
||||
target triple = "powerpc64-unknown-linux-gnu"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-pc-linux"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-n32:64-S128"
|
||||
target triple = "sparcv9-sun-solaris"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
;
|
||||
; Make sure that SROA doesn't lose nonnull metadata
|
||||
; on loads from allocas that get optimized out.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
; This test checks that SROA runs mem2reg on scalable vectors.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -S -sroa < %s | FileCheck %s
|
||||
; RUN: opt -S -passes=sroa < %s | FileCheck %s
|
||||
|
||||
%pair = type { i32, i32 }
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -S -sroa < %s | FileCheck %s
|
||||
; RUN: opt -S -passes=sroa < %s | FileCheck %s
|
||||
|
||||
%st.half = type { half }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i1) nounwind
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-f80:128-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i1) nounwind
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -S -sroa %s | FileCheck %s
|
||||
; RUN: opt -S -passes=sroa %s | FileCheck %s
|
||||
|
||||
; SROA should keep `!tbaa.struct` metadata
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -S -sroa %s | FileCheck %s
|
||||
; RUN: opt -S -passes=sroa %s | FileCheck %s
|
||||
|
||||
; SROA should correctly offset `!tbaa.struct` metadata
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -S -sroa %s | FileCheck %s
|
||||
; RUN: opt -S -passes=sroa %s | FileCheck %s
|
||||
|
||||
; This should not crash
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
define <4 x i64> @vector_ptrtoint({<2 x i32*>, <2 x i32*>} %x) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -sroa -S < %s | FileCheck %s
|
||||
; RUN: opt -passes=sroa -S < %s | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:32-i64:32-v32:32-n32-S64"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
define <4 x i1> @vector_bitcast() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -sroa -S | FileCheck %s
|
||||
; RUN: opt < %s -passes=sroa -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
|
||||
|
||||
%S1 = type { i64, [42 x float] }
|
||||
|
|
Loading…
Reference in New Issue