forked from OSchip/llvm-project
[NewPM][test] Only use -passes syntax in Scalarizer lit tests
With legacy PM being deprecated it should be enough to verify the scalarizer pass using the new-PM syntax when invoking opt.
This commit is contained in:
parent
5e4dbd7a2f
commit
e9320b1a95
llvm/test/Transforms/Scalarizer
basic-inseltpoison.llbasic.llcache-bug.llconstant-extractelement.llconstant-insertelement.llcrash-bug.lldbginfo.lldbgloc-bug-inseltpoison.lldbgloc-bug.llglobal-bug-2.llglobal-bug.llintrinsics.llorder-bug-inseltpoison.llorder-bug.llphi-bug-inseltpoison.llphi-bug.llphi-unreachable-pred.llscatter-order.llstore-bug.llvariable-extractelement.llvariable-insertelement.llvector-gep.ll
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt %s -scalarizer -scalarize-load-store -dce -S | FileCheck %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -scalarize-load-store -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-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt %s -scalarizer -scalarize-load-store -dce -S | FileCheck %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -scalarize-load-store -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-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt -scalarizer -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='function(scalarizer)' -S < %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-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt %s -scalarizer -scalarize-load-store -dce -S | FileCheck --check-prefixes=ALL %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -scalarize-load-store -S | FileCheck --check-prefixes=ALL %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-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt %s -scalarizer -scalarize-load-store -dce -S | FileCheck --check-prefixes=ALL %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -scalarize-load-store -S | FileCheck --check-prefixes=ALL %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-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt %s -scalarizer -S -o - | FileCheck %s
|
||||
; RUN: opt %s -passes='function(scalarizer)' -S -o - | FileCheck %s
|
||||
|
||||
; Don't crash
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt %s -scalarizer -scalarize-load-store -S | FileCheck %s
|
||||
; RUN: opt %s -passes='function(scalarizer)' -scalarize-load-store -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-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt -S -march=x86 -scalarizer %s | FileCheck %s
|
||||
; RUN: opt -S -march=x86 -passes='function(scalarizer)' %s | FileCheck %s
|
||||
|
||||
; Reproducer for pr27938
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt -S -march=x86 -scalarizer %s | FileCheck %s
|
||||
; RUN: opt -S -march=x86 -passes='function(scalarizer)' %s | FileCheck %s
|
||||
|
||||
; Reproducer for pr27938
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt < %s -scalarizer -S -o - | FileCheck %s
|
||||
; RUN: opt < %s -passes='function(scalarizer)' -S | FileCheck %s
|
||||
|
||||
; The scalarizer used to change the name of the global variable
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt < %s -scalarizer -S -o - | FileCheck %s
|
||||
; RUN: opt < %s -passes='function(scalarizer)' -S | FileCheck %s
|
||||
|
||||
@a = dso_local global i16 0, align 1
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt -S -scalarizer %s | FileCheck %s
|
||||
; RUN: opt -S -passes='function(scalarizer)' %s | FileCheck %s
|
||||
|
||||
; Unary fp
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt %s -scalarizer -S -o - | FileCheck %s
|
||||
; RUN: opt %s -passes='function(scalarizer)' -S -o - | FileCheck %s
|
||||
|
||||
; This input caused the scalarizer to replace & erase gathered results when
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
; RUN: opt %s -scalarizer -S -o - | FileCheck %s
|
||||
; RUN: opt %s -passes='function(scalarizer)' -S -o - | FileCheck %s
|
||||
|
||||
; This input caused the scalarizer to replace & erase gathered results when
|
||||
; This input caused the scalarizer to replace & erase gathered results when
|
||||
; future gathered results depended on them being alive
|
||||
|
||||
define dllexport spir_func <4 x i32> @main(float %a) {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt %s -scalarizer -verify -S -o - | FileCheck %s
|
||||
; RUN: opt %s -passes='function(scalarizer,verify)' -S -o - | FileCheck %s
|
||||
|
||||
define void @f3() local_unnamed_addr {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt %s -scalarizer -verify -S -o - | FileCheck %s
|
||||
; RUN: opt %s -passes='function(scalarizer,verify)' -S -o - | FileCheck %s
|
||||
|
||||
define void @f3() local_unnamed_addr {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -scalarizer -S -o - | FileCheck %s
|
||||
; RUN: opt < %s -passes='function(scalarizer)' -S -o - | FileCheck %s
|
||||
|
||||
define i16 @f1() {
|
||||
; CHECK-LABEL: @f1(
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt %s -scalarizer -scalarize-load-store -S | FileCheck %s
|
||||
; RUN: opt %s -passes='function(scalarizer)' -scalarize-load-store -S | FileCheck %s
|
||||
|
||||
; This verifies that the order of extract element instructions is
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt -scalarizer -scalarize-load-store -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='function(scalarizer)' -scalarize-load-store -S < %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-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt %s -scalarizer -dce -S | FileCheck --check-prefix=DEFAULT %s
|
||||
; RUN: opt %s -scalarizer -scalarize-variable-insert-extract=false -dce -S | FileCheck --check-prefix=OFF %s
|
||||
; RUN: opt %s -scalarizer -scalarize-variable-insert-extract=true -dce -S | FileCheck --check-prefix=DEFAULT %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -S | FileCheck --check-prefix=DEFAULT %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -scalarize-variable-insert-extract=false -S | FileCheck --check-prefix=OFF %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -scalarize-variable-insert-extract=true -S | FileCheck --check-prefix=DEFAULT %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-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt %s -scalarizer -dce -S | FileCheck --check-prefix=DEFAULT %s
|
||||
; RUN: opt %s -scalarizer -scalarize-variable-insert-extract=false -dce -S | FileCheck --check-prefix=OFF %s
|
||||
; RUN: opt %s -scalarizer -scalarize-variable-insert-extract=true -dce -S | FileCheck --check-prefix=DEFAULT %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -S | FileCheck --check-prefix=DEFAULT %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -scalarize-variable-insert-extract=false -S | FileCheck --check-prefix=OFF %s
|
||||
; RUN: opt %s -passes='function(scalarizer,dce)' -scalarize-variable-insert-extract=true -S | FileCheck --check-prefix=DEFAULT %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-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
; RUN: opt -S -scalarizer %s | FileCheck %s
|
||||
; RUN: opt -S -passes='function(scalarizer)' %s | FileCheck %s
|
||||
|
||||
; Check that the scalarizer can handle vector GEPs with scalar indices
|
||||
|
|
Loading…
Reference in New Issue