2 changes: 1 addition & 1 deletion llvm/test/Transforms/ConstantHoisting/PowerPC/masks.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-unknown-linux-gnu"

Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/ConstantHoisting/RISCV/immediates.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: opt -mtriple=riscv32-unknown-elf -S -consthoist < %s | FileCheck %s
; RUN: opt -mtriple=riscv64-unknown-elf -S -consthoist < %s | FileCheck %s
; RUN: opt -mtriple=riscv32-unknown-elf -S -passes=consthoist < %s | FileCheck %s
; RUN: opt -mtriple=riscv64-unknown-elf -S -passes=consthoist < %s | FileCheck %s

; Check that we don't hoist immediates with small values.
define i64 @test1(i64 %a) nounwind {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/ConstantHoisting/X86/bad-cases.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -consthoist -S < %s | FileCheck %s
; RUN: opt -passes=consthoist -S < %s | FileCheck %s
target triple = "x86_64--"

; We don't want to convert constant divides because the benefit from converting
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/ConstantHoisting/X86/cast-inst.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s
; RUN: opt -S -passes='consthoist' < %s | FileCheck %s

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.9.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s
; ModuleID = 'test-hoist-debug.cpp'
source_filename = "test-hoist-debug.cpp"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Expand All @@ -8,7 +8,7 @@ target triple = "x86_64-unknown-linux-gnu"
define i32 @_Z3foov() !dbg !7 {
; CHECK: bitcast
; CHECK-NOT: !dbg !11
; CHECK: inttoptr
; CHECK: inttoptr
entry:
%a0 = inttoptr i64 4646526064 to i32*
%v0 = load i32, i32* %a0, align 16, !dbg !11
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s
; ModuleID = 'test-hoist-debug.cpp'
source_filename = "test-hoist-debug.cpp"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Expand All @@ -8,7 +8,7 @@ target triple = "x86_64-unknown-linux-gnu"
define i32 @_Z3foov() !dbg !7 {
; CHECK: bitcast
; CHECK: !dbg !11
; CHECK: inttoptr
; CHECK: inttoptr
%a0 = inttoptr i64 4646526064 to i32*, !dbg !11
%v0 = load i32, i32* %a0, align 16, !dbg !11

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.9.0"
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: opt -S -consthoist -consthoist-with-block-frequency=false < %s | FileCheck %s
; RUN: opt -S -consthoist -consthoist-with-block-frequency=true < %s | FileCheck --check-prefix=BFIHOIST %s
; RUN: opt -S -passes=consthoist -consthoist-with-block-frequency=false < %s | FileCheck %s
; RUN: opt -S -passes=consthoist -consthoist-with-block-frequency=true < %s | FileCheck --check-prefix=BFIHOIST %s

target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/ConstantHoisting/X86/ehphi.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s

target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -mtriple=x86_64-darwin-unknown -S -consthoist < %s | FileCheck %s
; RUN: opt -mtriple=x86_64-darwin-unknown -S -passes=consthoist < %s | FileCheck %s

define i128 @test1(i128 %a) nounwind {
; CHECK-LABEL: test1
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/ConstantHoisting/X86/phi.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -consthoist -consthoist-gep=1 -S | FileCheck %s
; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -passes=consthoist -consthoist-gep=1 -S | FileCheck %s

; This is a reproducer for PR43903 where we hit an assertion:
; opt: ../lib/Transforms/Scalar/ConstantHoisting.cpp:903: bool llvm::ConstantHoistingPass::emitBaseConstants(llvm::GlobalVariable *): Assertion `UsesNum == (ReBasesNum + NotRebasedNum) && "Not all uses are rebased"' failed.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/ConstantHoisting/X86/stackmap.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -consthoist < %s | FileCheck %s
; RUN: opt -S -passes=consthoist < %s | FileCheck %s

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.9.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -constraint-elimination -S %s | FileCheck %s
; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s

; Tests for using inbounds information from GEPs where the GEP only causes UB in the use blocks.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -constraint-elimination -S %s | FileCheck %s
; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s

define i1 @idx_known_positive_via_len_1(i8 %len, i8 %idx) {
; CHECK-LABEL: @idx_known_positive_via_len_1(
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/Coroutines/coro-async-nomerge.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: opt < %s -O2 -S
; RUN: opt -S -hoist-common-insts -hoist-common-insts -simplifycfg < %s | FileCheck %s --check-prefixes=CHECK
; RUN: opt -S -hoist-common-insts -hoist-common-insts -passes=simplifycfg < %s | FileCheck %s --check-prefixes=CHECK
target datalayout = "p:64:64:64"
%swift.async_func_pointer = type <{ i32, i32 }>
%swift.context = type { %swift.context*, void (%swift.context*)* }
Expand Down Expand Up @@ -68,7 +68,7 @@ declare swifttailcc void @swift_task_switch(%swift.context*, i8*)

define internal swifttailcc void @repo.1(i8* %0, %swift.context* %1) {
entry:
musttail call swifttailcc void @swift_task_switch(%swift.context* swiftasync %1, i8* %0)
musttail call swifttailcc void @swift_task_switch(%swift.context* swiftasync %1, i8* %0)
ret void
}

Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/Coroutines/coro-elide-stat.ll
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
; REQUIRES: asserts
;
; RUN: opt < %s -S \
; RUN: -passes='cgscc(repeat<2>(inline,function(coro-elide,dce)))' -stats 2>&1 \
; RUN: -passes='cgscc(repeat<2>(inline,function(coro-elide,dce)))' -stats 2>&1 \
; RUN: | FileCheck %s
; RUN: opt < %s --disable-output \
; RUN: -passes='cgscc(repeat<2>(inline,function(coro-elide,dce)))' \
; RUN: -passes='cgscc(repeat<2>(inline,function(coro-elide,dce)))' \
; RUN: -coro-elide-info-output-file=%t && \
; RUN: cat %t \
; RUN: | FileCheck %s --check-prefix=FILE
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/Coroutines/coro-elide.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; Tests that the coro.destroy and coro.resume are devirtualized where possible,
; SCC pipeline restarts and inlines the direct calls.
; RUN: opt < %s -S \
; RUN: -passes='cgscc(repeat<2>(inline,function(coro-elide,dce)))' \
; RUN: -passes='cgscc(repeat<2>(inline,function(coro-elide,dce)))' \
; RUN: | FileCheck %s

declare void @print(i32) nounwind
Expand Down
12 changes: 6 additions & 6 deletions llvm/test/Transforms/Coroutines/coro-heap-elide.ll
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; Tests that the dynamic allocation and deallocation of the coroutine frame is
; elided and any tail calls referencing the coroutine frame has the tail
; elided and any tail calls referencing the coroutine frame has the tail
; call attribute removed.
; RUN: opt < %s -S \
; RUN: -passes='cgscc(inline,function(coro-elide,instsimplify,simplifycfg))' \
; RUN: -passes='cgscc(inline,function(coro-elide,instsimplify,simplifycfg))' \
; RUN: -aa-pipeline='basic-aa' | FileCheck %s

declare void @print(i32) nounwind
Expand All @@ -19,7 +19,7 @@ declare void @may_throw()
declare i8* @CustomAlloc(i32)
declare void @CustomFree(i8*)

@f.resumers = internal constant [3 x void (%f.frame*)*]
@f.resumers = internal constant [3 x void (%f.frame*)*]
[void (%f.frame*)* @f.resume, void (%f.frame*)* @f.destroy, void (%f.frame*)* @f.cleanup]

; a coroutine start function
Expand All @@ -36,9 +36,9 @@ dyn.alloc:
coro.begin:
%phi = phi i8* [ null, %entry ], [ %alloc, %dyn.alloc ]
%hdl = call i8* @llvm.coro.begin(token %id, i8* %phi)
invoke void @may_throw()
invoke void @may_throw()
to label %ret unwind label %ehcleanup
ret:
ret:
ret i8* %hdl

ehcleanup:
Expand Down Expand Up @@ -338,7 +338,7 @@ entry:
; Tail call should remain tail calls
; CHECK: tail call void @bar(
tail call void @bar(i8* %hdl)
; CHECK: tail call void @bar(
; CHECK: tail call void @bar(
tail call void @bar(i8* null)

; CHECK-NEXT: call fastcc void bitcast (void (%f.frame*)* @f.resume to void (i8*)*)(i8*
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/Coroutines/smoketest.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
; RUN: opt < %s -disable-output -passes='default<O3>' \
; RUN: -debug-pass-manager 2>&1 | FileCheck %s --check-prefixes=CHECK-ALL,CHECK-OPT
; RUN: opt < %s -disable-output -debug-pass-manager \
; RUN: -passes='module(coro-early),function(coro-elide),cgscc(coro-split),module(coro-cleanup)' 2>&1 \
; RUN: -passes='module(coro-early),function(coro-elide),cgscc(coro-split),module(coro-cleanup)' 2>&1 \
; RUN: | FileCheck %s --check-prefixes=CHECK-ALL,CHECK-OPT

; note that we run CoroElidePass before CoroSplitPass. This is because CoroElidePass is part of
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -jump-threading -correlated-propagation
; RUN: opt < %s -passes=jump-threading,correlated-propagation

%struct.S2 = type {}

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/CrossDSOCFI/basic.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -cross-dso-cfi < %s | FileCheck %s
; RUN: opt -S -passes=cross-dso-cfi < %s | FileCheck %s
; RUN: opt -S -passes=cross-dso-cfi < %s | FileCheck %s

; CHECK: define void @__cfi_check(i64 %[[TYPE:.*]], i8* %[[ADDR:.*]], i8* %[[DATA:.*]]) align 4096
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/CrossDSOCFI/cfi_functions.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; Test that types referenced in ThinLTO-style !cfi.functions are known to __cfi_check.
; RUN: opt -S -cross-dso-cfi < %s | FileCheck %s
; RUN: opt -S -passes=cross-dso-cfi < %s | FileCheck %s
; RUN: opt -S -passes=cross-dso-cfi < %s | FileCheck %s

; CHECK: define void @__cfi_check(
Expand Down
8 changes: 4 additions & 4 deletions llvm/test/Transforms/CrossDSOCFI/thumb.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: opt -mtriple=armv7-linux-android -S -cross-dso-cfi < %s | FileCheck --check-prefix=THUMB %s
; RUN: opt -mtriple=thumbv7-linux-android -S -cross-dso-cfi < %s | FileCheck --check-prefix=THUMB %s
; RUN: opt -mtriple=i386-linux -S -cross-dso-cfi < %s | FileCheck --check-prefix=NOTHUMB %s
; RUN: opt -mtriple=x86_64-linux -S -cross-dso-cfi < %s | FileCheck --check-prefix=NOTHUMB %s
; RUN: opt -mtriple=armv7-linux-android -S -passes=cross-dso-cfi < %s | FileCheck --check-prefix=THUMB %s
; RUN: opt -mtriple=thumbv7-linux-android -S -passes=cross-dso-cfi < %s | FileCheck --check-prefix=THUMB %s
; RUN: opt -mtriple=i386-linux -S -passes=cross-dso-cfi < %s | FileCheck --check-prefix=NOTHUMB %s
; RUN: opt -mtriple=x86_64-linux -S -passes=cross-dso-cfi < %s | FileCheck --check-prefix=NOTHUMB %s

target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -dfa-jump-threading -sccp -simplifycfg %s | FileCheck %s
; RUN: opt -S -passes=dfa-jump-threading,sccp,simplifycfg %s | FileCheck %s

; This test checks that a constant propagation is applied for a basic loop.
; Related to bug 44679.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; REQUIRES: asserts
; RUN: opt -S -dfa-jump-threading -debug-only=dfa-jump-threading -disable-output %s 2>&1 | FileCheck %s
; RUN: opt -S -passes=dfa-jump-threading -debug-only=dfa-jump-threading -disable-output %s 2>&1 | FileCheck %s

; This test checks that the analysis identifies all threadable paths in a
; simple CFG. A threadable path includes a list of basic blocks, the exit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -dfa-jump-threading %s | FileCheck %s
; RUN: opt -S -passes=dfa-jump-threading %s | FileCheck %s

; These tests check that the DFA jump threading transformation is applied
; properly to two CFGs. It checks that blocks are cloned, branches are updated,
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DFAJumpThreading/dfa-unfold-select.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -dfa-jump-threading %s | FileCheck %s
; RUN: opt -S -passes=dfa-jump-threading %s | FileCheck %s

; These tests check if selects are unfolded properly for jump threading
; opportunities. There are three different patterns to consider:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DFAJumpThreading/max-path-length.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -dfa-jump-threading -dfa-max-path-length=6 %s | FileCheck %s
; RUN: opt -S -passes=dfa-jump-threading -dfa-max-path-length=6 %s | FileCheck %s

; Make the path
; <%for.body %case1 %case1.1 %case1.2 %case1.3 %case1.4 %for.inc %for.end>
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/DFAJumpThreading/negative.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; RUN: opt -dfa-jump-threading -dfa-cost-threshold=25 -pass-remarks-missed='dfa-jump-threading' -pass-remarks-output=%t -disable-output %s
; RUN: opt -passes=dfa-jump-threading -dfa-cost-threshold=25 -pass-remarks-missed='dfa-jump-threading' -pass-remarks-output=%t -disable-output %s
; RUN: FileCheck --input-file %t --check-prefix=REMARK %s
; RUN: opt -S -dfa-jump-threading %s | FileCheck %s
; RUN: opt -S -passes=dfa-jump-threading %s | FileCheck %s

; This negative test case checks that the optimization doesn't trigger
; when the code size cost is too high.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DeadArgElim/dbginfo.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: opt -passes=deadargelim -S < %s | FileCheck %s
; PR14016

; Built with clang (then manually running -mem2reg with opt) from the following source:
; Built with clang (then manually running -passes=mem2reg with opt) from the following source:
; static void f1(int, ...) {
; }
;
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DeadArgElim/fct_ptr.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S %s -deadargelim -o - | FileCheck %s
; RUN: opt -S %s -passes=deadargelim -o - | FileCheck %s
; In that test @internal_fct is used by an instruction
; we don't know how to rewrite (the comparison that produces
; %cmp1).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -dse -S | FileCheck %s
; RUN: opt < %s -passes=dse -S | FileCheck %s
; RUN: opt < %s -aa-pipeline=basic-aa -passes=dse -S | FileCheck %s

target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DeadStoreElimination/overlap.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -dse -S | FileCheck %s
; RUN: opt < %s -passes=dse -S | FileCheck %s
; RUN: opt < %s -aa-pipeline=basic-aa -passes=dse -S | FileCheck %s

declare void @use(ptr)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DeadStoreElimination/simple.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -dse -S | FileCheck %s
; RUN: opt < %s -passes=dse -S | FileCheck %s
; RUN: opt < %s -aa-pipeline=basic-aa -passes=dse -S | FileCheck %s
target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -div-rem-pairs -S -mtriple=mips-unknown-unknown | FileCheck %s
; RUN: opt < %s -passes=div-rem-pairs -S -mtriple=mips-unknown-unknown | FileCheck %s

declare void @foo(i32, i32)

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DivRemPairs/Mips/div-rem-pairs.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -div-rem-pairs -S -mtriple=mips-unknown-unknown | FileCheck %s
; RUN: opt < %s -passes=div-rem-pairs -S -mtriple=mips-unknown-unknown | FileCheck %s

declare void @foo(i32, i32)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -div-rem-pairs -S -mtriple=powerpc64-unknown-unknown | FileCheck %s
; RUN: opt < %s -passes=div-rem-pairs -S -mtriple=powerpc64-unknown-unknown | FileCheck %s

declare void @foo(i32, i32)

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DivRemPairs/PowerPC/div-rem-pairs.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -div-rem-pairs -S -mtriple=powerpc64-unknown-unknown | FileCheck %s
; RUN: opt < %s -passes=div-rem-pairs -S -mtriple=powerpc64-unknown-unknown | FileCheck %s

declare void @foo(i32, i32)

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DivRemPairs/PowerPC/pr45885.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -div-rem-pairs -S -mtriple=powerpc64-unknown-unknown | FileCheck %s
; RUN: opt < %s -passes=div-rem-pairs -S -mtriple=powerpc64-unknown-unknown | FileCheck %s

define void @g() {
; CHECK-LABEL: @g(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -div-rem-pairs -S -mtriple=x86_64-unknown-unknown | FileCheck %s
; RUN: opt < %s -passes=div-rem-pairs -S -mtriple=x86_64-unknown-unknown | FileCheck %s

declare void @foo(i32, i32)

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/DivRemPairs/X86/div-rem-pairs.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -div-rem-pairs -S -mtriple=x86_64-unknown-unknown | FileCheck %s
; RUN: opt < %s -passes=div-rem-pairs -S -mtriple=x86_64-unknown-unknown | FileCheck %s

declare void @foo(i32, i32)

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/Float2Int/pr54669.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -float2int < %s | FileCheck %s
; RUN: opt -S -passes=float2int < %s | FileCheck %s

declare void @use(i32)

Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/ForcedFunctionAttrs/forced.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: opt < %s -S -forceattrs | FileCheck %s --check-prefix=CHECK-CONTROL
; RUN: opt < %s -S -forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO
; RUN: opt < %s -S -passes=forceattrs | FileCheck %s --check-prefix=CHECK-CONTROL
; RUN: opt < %s -S -passes=forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO
; RUN: opt < %s -S -passes=forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO
; RUN: opt < %s -S -passes=forceattrs -force-remove-attribute goo:cold | FileCheck %s --check-prefix=REMOVE-COLD
; RUN: opt < %s -S -passes=forceattrs -force-remove-attribute goo:noinline | FileCheck %s --check-prefix=REMOVE-NOINLINE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; PR2792

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s

; CHECK: define ptr @a(ptr nocapture readonly %p)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/2010-10-30-volatile.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; PR8279

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/arg_returned.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-attrs -S < %s | FileCheck %s --check-prefix=FNATTR
; RUN: opt -passes=function-attrs -S < %s | FileCheck %s --check-prefix=FNATTR
;
; Test cases specifically designed for the "returned" argument attribute.
; We use FIXME's to indicate problems and missing attributes.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/assume.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -o - -function-attrs %s | FileCheck %s
; RUN: opt -S -o - -passes=function-attrs %s | FileCheck %s
; RUN: opt -S -o - -passes=function-attrs %s | FileCheck %s

; CHECK-NOT: readnone
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/comdat-ipo.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s

; See PR26774
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/naked_functions.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -function-attrs %s | FileCheck %s
; RUN: opt -S -passes=function-attrs %s | FileCheck %s
; RUN: opt -S -passes='function-attrs' %s | FileCheck %s

; Don't change the attributes of parameters of naked functions, in particular
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/nocapture.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-attrs -S < %s | FileCheck %s --check-prefixes=FNATTR
; RUN: opt -passes=function-attrs -S < %s | FileCheck %s --check-prefixes=FNATTR
; RUN: opt -passes=function-attrs -S < %s | FileCheck %s --check-prefixes=FNATTR

@g = global ptr null ; <ptr> [#uses=1]
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/nofree.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/nonnull-global.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -function-attrs %s | FileCheck %s
; RUN: opt -S -passes=function-attrs %s | FileCheck %s
; RUN: opt -S -passes=function-attrs %s | FileCheck %s

@a = external global i8, !absolute_symbol !0
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/nonnull.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -function-attrs -enable-nonnull-arg-prop %s | FileCheck %s --check-prefixes=FNATTR
; RUN: opt -S -passes=function-attrs -enable-nonnull-arg-prop %s | FileCheck %s --check-prefixes=FNATTR
; RUN: opt -S -passes=function-attrs -enable-nonnull-arg-prop %s | FileCheck %s --check-prefixes=FNATTR

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/nosync.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/nounwind.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s

; TEST 1
define i32 @foo1() {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/optnone.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s

@x = global i32 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-attrs -S < %s | FileCheck %s
; RUN: opt -passes=function-attrs -S < %s | FileCheck %s
; RUN: opt -passes=function-attrs -S < %s | FileCheck %s

; This checks for a previously existing iterator wraparound bug in
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/readnone.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s

; CHECK: define void @bar(ptr nocapture readnone %0)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/returned.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s

; CHECK: define i32 @test1(i32 %p, i32 %q)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/willreturn-callsites.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -inferattrs -function-attrs -S %s | FileCheck %s
; RUN: opt -passes=inferattrs,function-attrs -S %s | FileCheck %s

declare void @decl_readonly() readonly
declare void @decl_readnone() readnone
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/FunctionAttrs/willreturn.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes
; RUN: opt -function-attrs -S %s | FileCheck %s
; RUN: opt -passes=function-attrs -S %s | FileCheck %s

define void @mustprogress_readnone() mustprogress {
; CHECK: Function Attrs: mustprogress nofree norecurse noreturn nosync nounwind willreturn memory(none)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -S < %s | FileCheck %s

%mystruct = type { i32, [2 x i64] }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -func-specialization-max-iters=2 -func-specialization-size-threshold=20 -func-specialization-avg-iters-cost=20 -function-specialization-for-literal-constant=true -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -func-specialization-max-iters=2 -func-specialization-size-threshold=20 -func-specialization-avg-iters-cost=20 -function-specialization-for-literal-constant=true -S < %s | FileCheck %s

declare hidden i1 @compare(ptr) align 2
declare hidden { i8, ptr } @getType(ptr) align 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -func-specialization-avg-iters-cost=3 -func-specialization-size-threshold=10 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -func-specialization-avg-iters-cost=3 -func-specialization-size-threshold=10 -S < %s | FileCheck %s

; CHECK-NOT: foo.{{[0-9]+}}

Expand Down Expand Up @@ -58,4 +58,4 @@ if.else:
return:
%retval.0 = phi i32 [ %call, %if.then ], [ %call1, %if.else ]
ret i32 %retval.0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
; Note that this test case shows that function specialization pass would
; transform the function even if no specialization happened.

; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s

%struct = type { i8, i16, i32, i64, i64}
@Global = internal constant %struct {i8 0, i16 1, i32 2, i64 3, i64 4}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s

; Check that we don't crash and specialise on a constant expression.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s

define i32 @main() {
; CHECK-LABEL: @main(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s

; Check that we don't crash and specialise on a function call with byval attribute.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -function-specialization -force-function-specialization -func-specialization-on-address -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -func-specialization-on-address -S < %s | FileCheck %s

; Check that we don't crash and specialise on a scalar global variable with byval attribute.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -function-specialization-for-literal-constant=true -func-specialization-size-threshold=10 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -function-specialization-for-literal-constant=true -func-specialization-size-threshold=10 -S < %s | FileCheck %s

; Check that the literal constant parameter could be specialized.
; CHECK: @foo.1(
Expand Down Expand Up @@ -41,4 +41,4 @@ entry:
%retval.2 = call i32 @foo(i1 0)
%retval = add nsw i32 %retval.1, %retval.2
ret i32 %retval
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -func-specialization-avg-iters-cost=5 -func-specialization-size-threshold=10 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -func-specialization-avg-iters-cost=5 -func-specialization-size-threshold=10 -S < %s | FileCheck %s

; Check that the loop depth results in a larger specialization bonus.
; CHECK: @foo.1(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -S < %s | FileCheck %s

; CHECK-NOT: @compute.1
; CHECK-NOT: @compute.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -func-specialization-size-threshold=3 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -func-specialization-size-threshold=3 -S < %s | FileCheck %s

; Checks for callsites that have been annotated with MinSize. No specialisation
; expected here:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -func-specialization-size-threshold=3 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -func-specialization-size-threshold=3 -S < %s | FileCheck %s

; Checks for callsites that have been annotated with MinSize. We only expect
; specialisation for the call that does not have the attribute:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s

; Function @foo has function attribute 'noduplicate', so check that we don't
; specialize it:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s

; Check that function foo does not gets specialised as it contains an intrinsic
; that is marked as NoDuplicate.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s

; The if.then block is not executed, so check that we don't specialise here.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py

; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -function-specialization -force-function-specialization -func-specialization-on-address=0 -S < %s | FileCheck %s
; RUN: opt -function-specialization -force-function-specialization -func-specialization-on-address=1 -S < %s | FileCheck %s --check-prefix=ON-ADDRESS
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -func-specialization-on-address=0 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -func-specialization-on-address=1 -S < %s | FileCheck %s --check-prefix=ON-ADDRESS

; Global B is not constant. We do not specialise on addresses unless we
; enable that:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; REQUIRES: asserts
; RUN: opt -function-specialization -debug -S < %s 2>&1 | FileCheck %s
; RUN: opt -passes=function-specialization -debug -S < %s 2>&1 | FileCheck %s

; The purpose of this test is to check that we don't run the solver as there's
; nothing to do here. For a test that doesn't trigger function specialisation,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s

; Check that we don't crash and specialise on a poison value.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; RUN: opt -function-specialization -force-function-specialization -func-specialization-max-iters=2 -inline -instcombine -S < %s | FileCheck %s --check-prefix=ITERS2
; RUN: opt -function-specialization -force-function-specialization -func-specialization-max-iters=3 -inline -instcombine -S < %s | FileCheck %s --check-prefix=ITERS3
; RUN: opt -function-specialization -force-function-specialization -func-specialization-max-iters=4 -inline -instcombine -S < %s | FileCheck %s --check-prefix=ITERS4
; RUN: opt -passes=function-specialization,inline,instcombine -force-function-specialization -func-specialization-max-iters=2 -S < %s | FileCheck %s --check-prefix=ITERS2
; RUN: opt -passes=function-specialization,inline,instcombine -force-function-specialization -func-specialization-max-iters=3 -S < %s | FileCheck %s --check-prefix=ITERS3
; RUN: opt -passes=function-specialization,inline,instcombine -force-function-specialization -func-specialization-max-iters=4 -S < %s | FileCheck %s --check-prefix=ITERS4

@low = internal constant i32 0, align 4
@high = internal constant i32 6, align 4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -force-function-specialization -func-specialization-max-iters=2 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -func-specialization-max-iters=2 -S < %s | FileCheck %s

; Volatile store preventing recursive specialisation:
;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -force-function-specialization -func-specialization-max-iters=2 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -func-specialization-max-iters=2 -S < %s | FileCheck %s

; Duplicate store preventing recursive specialisation:
;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -force-function-specialization -func-specialization-max-iters=2 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -func-specialization-max-iters=2 -S < %s | FileCheck %s

; Alloca is not an integer type:
;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; REQUIRES: asserts
; RUN: opt -stats -function-specialization -S -force-function-specialization < %s 2>&1 | FileCheck %s
; RUN: opt -stats -passes=function-specialization -S -force-function-specialization < %s 2>&1 | FileCheck %s

; CHECK: 2 function-specialization - Number of functions specialized

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -func-specialization-size-threshold=3 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -func-specialization-size-threshold=3 -S < %s | FileCheck %s

define i64 @main(i64 %x, i1 %flag) {
;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -function-specialization -deadargelim -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -function-specialization -func-specialization-max-iters=1 -deadargelim -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -function-specialization -func-specialization-max-iters=0 -deadargelim -force-function-specialization -S < %s | FileCheck %s --check-prefix=DISABLED
; RUN: opt -function-specialization -func-specialization-avg-iters-cost=1 -deadargelim -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization,deadargelim -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization,deadargelim -func-specialization-max-iters=1 -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization,deadargelim -func-specialization-max-iters=0 -force-function-specialization -S < %s | FileCheck %s --check-prefix=DISABLED
; RUN: opt -passes=function-specialization,deadargelim -func-specialization-avg-iters-cost=1 -force-function-specialization -S < %s | FileCheck %s

; DISABLED-NOT: @func.1(
; DISABLED-NOT: @func.2(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; RUN: opt -function-specialization -func-specialization-avg-iters-cost=3 -S < %s | \
; RUN: opt -passes=function-specialization -func-specialization-avg-iters-cost=3 -S < %s | \
; RUN: FileCheck %s --check-prefixes=COMMON,DISABLED
; RUN: opt -function-specialization -force-function-specialization -S < %s | \
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | \
; RUN: FileCheck %s --check-prefixes=COMMON,FORCE
; RUN: opt -function-specialization -func-specialization-avg-iters-cost=3 -force-function-specialization -S < %s | \
; RUN: opt -passes=function-specialization -func-specialization-avg-iters-cost=3 -force-function-specialization -S < %s | \
; RUN: FileCheck %s --check-prefixes=COMMON,FORCE

; Test for specializing a constant global.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: opt -function-specialization -force-function-specialization \
; RUN: opt -passes=function-specialization -force-function-specialization \
; RUN: -func-specialization-max-clones=2 -S < %s | FileCheck %s

; RUN: opt -function-specialization -force-function-specialization \
; RUN: opt -passes=function-specialization -force-function-specialization \
; RUN: -func-specialization-max-clones=1 -S < %s | FileCheck %s --check-prefix=CONST1

target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -force-function-specialization -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -force-function-specialization -S < %s | FileCheck %s

; There's nothing to specialize here as both calls are the same, so check that:
;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -function-specialization -func-specialization-size-threshold=3 -S < %s | FileCheck %s
; RUN: opt -passes=function-specialization -func-specialization-size-threshold=3 -S < %s | FileCheck %s

define i64 @main(i64 %x, i1 %flag) {
entry:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -function-specialization -func-specialization-max-clones=0 -func-specialization-size-threshold=14 -S < %s | FileCheck %s --check-prefix=NONE
; RUN: opt -function-specialization -func-specialization-max-clones=1 -func-specialization-size-threshold=14 -S < %s | FileCheck %s --check-prefix=ONE
; RUN: opt -function-specialization -func-specialization-max-clones=2 -func-specialization-size-threshold=14 -S < %s | FileCheck %s --check-prefix=TWO
; RUN: opt -function-specialization -func-specialization-max-clones=3 -func-specialization-size-threshold=14 -S < %s | FileCheck %s --check-prefix=THREE
; RUN: opt -passes=function-specialization -func-specialization-max-clones=0 -func-specialization-size-threshold=14 -S < %s | FileCheck %s --check-prefix=NONE
; RUN: opt -passes=function-specialization -func-specialization-max-clones=1 -func-specialization-size-threshold=14 -S < %s | FileCheck %s --check-prefix=ONE
; RUN: opt -passes=function-specialization -func-specialization-max-clones=2 -func-specialization-size-threshold=14 -S < %s | FileCheck %s --check-prefix=TWO
; RUN: opt -passes=function-specialization -func-specialization-max-clones=3 -func-specialization-size-threshold=14 -S < %s | FileCheck %s --check-prefix=THREE

; Make sure that we iterate correctly after sorting the specializations:
; FnSpecialization: Specializations for function compute
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GVN/PRE/pre-jt-add.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -passes=gvn -enable-pre -passes=jump-threading -S | FileCheck %s
; RUN: opt < %s -passes=gvn,jump-threading -enable-pre -S | FileCheck %s

@H = common global i32 0
@G = common global i32 0
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GVN/PRE/rle.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -data-layout="e-p:32:32:32-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-n8:16:32" -passes=gvn,dce -enable-split-backedge-in-load-pre -S | FileCheck %s --check-prefixes=CHECK,LE
; RUN: opt < %s -data-layout="E-p:32:32:32-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-n32" -passes=gvn,dce -enable-split-backedge-in-load-pre -S | FileCheck %s --check-prefixes=CHECK,BE
; RUN: opt < %s -data-layout="E-p:32:32:32-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-n32" -passes=gvn,dce -enable-split-backedge-in-load-pre -S | FileCheck %s --check-prefixes=CHECK,BE

;; Trivial RLE test.
define i32 @test0(i32 %V, i32* %P) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GVN/pr24426.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -passes=memcpyopt,mldst-motion -passes=gvn -S | FileCheck %s
; RUN: opt < %s -passes=memcpyopt,mldst-motion,gvn -S | FileCheck %s

declare void @check(i8)

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GVN/pr36063.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -passes=memcpyopt,mldst-motion -passes=gvn -S | FileCheck %s
; RUN: opt < %s -passes=memcpyopt,mldst-motion,gvn -S | FileCheck %s

define void @foo(i8* %ret, i1 %x) {
%a = alloca i8
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/GVNHoist/hoist-pr28933.ll
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
; RUN: opt -S -gvn-hoist -verify-memoryssa -newgvn < %s | FileCheck %s
; RUN: opt -S -passes=gvn-hoist,newgvn -verify-memoryssa < %s | FileCheck %s

; Check that we end up with one load and one store, in the right order
; CHECK-LABEL: define void @test_it(
; CHECK: store
; CHECK-NOT: store
; CHECK-NOT: load

%rec894.0.1.2.3.12 = type { i16 }

@a = external global %rec894.0.1.2.3.12
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GVNSink/indirect-call.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -gvn-sink -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -hoist-common-insts=true -simplifycfg-sink-common=false -S | FileCheck %s
; RUN: opt < %s -passes=gvn-sink,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -hoist-common-insts=true -simplifycfg-sink-common=false -S | FileCheck %s

declare i8 @ext(i1)

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GVNSink/sink-common-code.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -gvn-sink -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -hoist-common-insts=true -simplifycfg-sink-common=false -S | FileCheck %s
; RUN: opt < %s -passes=gvn-sink,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -hoist-common-insts=true -simplifycfg-sink-common=false -S | FileCheck %s

define zeroext i1 @test1(i1 zeroext %flag, i32 %blksA, i32 %blksB, i32 %nblks) {
entry:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GlobalDCE/deadblockaddr.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -globaldce -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S < %s | FileCheck %s
; RUN: opt -passes=globaldce,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S < %s | FileCheck %s

; Tests whether globaldce does the right cleanup while removing @bar
; so that a dead BlockAddress reference to foo won't prevent other passes
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GlobalDCE/virtual-functions-nonptr.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -globaldce -S | FileCheck %s
; RUN: opt < %s -passes=globaldce -S | FileCheck %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GlobalDCE/virtual-functions-null.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -globaldce -S | FileCheck %s
; RUN: opt < %s -passes=globaldce -S | FileCheck %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

Expand Down
8 changes: 4 additions & 4 deletions llvm/test/Transforms/GlobalOpt/2007-05-13-Crash.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -passes=globalopt -disable-output
; RUN: opt < %s -passes=globalopt -disable-output

target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
target triple = "i686-apple-darwin8"
Expand All @@ -9,9 +9,9 @@ target triple = "i686-apple-darwin8"
@_ZZ19SFLGetVisibilityKeyvE19_kSFLLVisibilityKey = internal global %struct.__CFString* null ; <%struct.__CFString**> [#uses=2]
@_ZZ22SFLGetAlwaysVisibleKeyvE22_kSFLLAlwaysVisibleKey = internal global %struct.__CFString* null ; <%struct.__CFString**> [#uses=7]
@0 = internal constant %struct.__builtin_CFString {
i32* getelementptr ([0 x i32], [0 x i32]* @__CFConstantStringClassReference, i32 0, i32 0),
i32 1992,
i8* getelementptr ([14 x i8], [14 x i8]* @.str, i32 0, i32 0),
i32* getelementptr ([0 x i32], [0 x i32]* @__CFConstantStringClassReference, i32 0, i32 0),
i32 1992,
i8* getelementptr ([14 x i8], [14 x i8]* @.str, i32 0, i32 0),
i32 13 }, section "__DATA,__cfstring" ; <%struct.__builtin_CFString*>:0 [#uses=1]
@__CFConstantStringClassReference = external global [0 x i32] ; <[0 x i32]*> [#uses=1]
@.str = internal constant [14 x i8] c"AlwaysVisible\00" ; <[14 x i8]*> [#uses=1]
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GuardWidening/basic.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -guard-widening < %s | FileCheck %s
; RUN: opt -S -passes=guard-widening < %s | FileCheck %s
; RUN: opt -S -passes=guard-widening < %s | FileCheck %s

declare void @llvm.experimental.guard(i1,...)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -guard-widening-widen-branch-guards=true -guard-widening < %s | FileCheck %s
; RUN: opt -S -guard-widening-widen-branch-guards=true -passes=guard-widening < %s | FileCheck %s
; RUN: opt -S -guard-widening-widen-branch-guards=true -passes=guard-widening < %s | FileCheck %s

; Basic test case: we wide the first check to check both the
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GuardWidening/mixed_guards.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -guard-widening-widen-branch-guards=true -guard-widening < %s | FileCheck %s
; RUN: opt -S -guard-widening-widen-branch-guards=true -passes=guard-widening < %s | FileCheck %s
; RUN: opt -S -guard-widening-widen-branch-guards=true -passes=guard-widening < %s | FileCheck %s

; Interaction between intrinsic and widenable condition guards.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GuardWidening/posion.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -guard-widening -dce < %s | FileCheck %s
; RUN: opt -S -passes=guard-widening,dce < %s | FileCheck %s

; FIXME: All the tests below must be fixed.

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/GuardWidening/range-check-merging.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -guard-widening < %s | FileCheck %s
; RUN: opt -S -passes=guard-widening < %s | FileCheck %s

declare void @llvm.experimental.guard(i1,...)

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/add-metadata-pre-post-loops.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; test that the pre and post loops have loop metadata which disables any further
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/bad-loop-structure.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -irce -irce-print-changed-loops=true < %s | FileCheck %s
; RUN: opt -S -passes=irce -irce-print-changed-loops=true < %s | FileCheck %s
; RUN: opt -S -passes='require<branch-prob>,irce' -irce-print-changed-loops=true < %s | FileCheck %s

; CHECK-NOT: irce
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/bad_expander.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/bug-loop-varying-upper-limit.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -irce-print-changed-loops -S -verify-loop-info -irce -verify < %s 2>&1 | FileCheck %s
; RUN: opt -irce-print-changed-loops -S -verify-loop-info -passes=irce,verify < %s 2>&1 | FileCheck %s
; RUN: opt -irce-print-changed-loops -S -verify-loop-info -passes='require<branch-prob>,irce,verify' < %s 2>&1 | FileCheck %s

; CHECK-NOT: constrained loop
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/IRCE/bug-mismatched-types.ll
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; RUN: opt -verify-loop-info -irce -S < %s
; RUN: opt -verify-loop-info -passes=irce -S < %s
; RUN: opt -verify-loop-info -passes='require<branch-prob>,irce' -S < %s

; These test cases don't check the correctness of the transform, but
; that -irce does not crash in the presence of certain things in
; that -passes=irce does not crash in the presence of certain things in
; the IR:

define void @mismatched_types_1() {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/clamp.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; The test demonstrates that incorrect behavior of Clamp may lead to incorrect
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/conjunctive-checks.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -verify-loop-info -irce < %s | FileCheck %s
; RUN: opt -S -verify-loop-info -passes=irce < %s | FileCheck %s
; RUN: opt -S -verify-loop-info -passes='require<branch-prob>,irce' < %s | FileCheck %s

define void @f_0(ptr %arr, ptr %a_len_ptr, i32 %n, ptr %cond_buf) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/correct-loop-info.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -irce < %s -S | FileCheck %s
; RUN: opt -passes=irce < %s -S | FileCheck %s
; RUN: opt -passes='require<branch-prob>,irce' < %s -S | FileCheck %s

; REQUIRES: asserts
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/decrementing-loop.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce -S < %s | FileCheck %s
; RUN: opt -verify-loop-info -passes=irce -S < %s | FileCheck %s
; RUN: opt -verify-loop-info -passes='require<branch-prob>,irce' -S < %s | FileCheck %s

define void @decrementing_loop(ptr %arr, ptr %a_len_ptr, i32 %n) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/empty_ranges.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S

; Make sure that IRCE doesn't apply in case of empty ranges.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/eq_ne.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; CHECK: irce: in function test_01: constrained Loop at depth 1 containing: %loop<header><exiting>,%in.bounds<latch><exiting>
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/iv-for-another-loop.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -irce -irce-print-changed-loops=true < %s | FileCheck %s
; RUN: opt -S -passes=irce -irce-print-changed-loops=true < %s | FileCheck %s
; RUN: opt -S -passes=irce -irce-print-changed-loops=true < %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-ni:1-p2:32:8:8:32-ni:2"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/low-becount.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -irce-print-changed-loops -verify-loop-info -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -irce-print-changed-loops -verify-loop-info -passes=irce -S < %s 2>&1 | FileCheck %s
;
; TODO: new-pm version should be enabled after we decide on branch-probability handling for loop passes
; TODO: opt -irce-print-changed-loops -verify-loop-info -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/multiple-access-no-preloop.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -verify-loop-info -irce -S < %s | FileCheck %s
; RUN: opt -verify-loop-info -passes=irce -S < %s | FileCheck %s
; RUN: opt -verify-loop-info -passes='require<branch-prob>,irce' -S < %s | FileCheck %s

define void @multiple_access_no_preloop(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/non-loop-invariant-rhs-instr.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -irce -verify-loop-info -verify < %s 2>&1 | FileCheck %s
; RUN: opt -S -passes=irce,verify -verify-loop-info < %s 2>&1 | FileCheck %s
; RUN: opt -S -verify-loop-info -passes=irce,verify < %s 2>&1 | FileCheck %s

define i32 @test_01(i32 %A, i64 %Len, ptr %array) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/non_known_positive_end.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce -irce-print-range-checks -irce-print-changed-loops %s -S 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -passes=irce -irce-print-range-checks -irce-print-changed-loops %s -S 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -passes='require<branch-prob>,irce' -irce-print-range-checks -irce-print-changed-loops %s -S 2>&1 | FileCheck %s

; Make sure that we can pick up both range checks.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/not-likely-taken.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce < %s 2>&1 | FileCheck %s
;
; TODO: new-pm version should be enabled after we decide on branch-probability handling for loop passes
; TODO: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' < %s 2>&1 | FileCheck %s
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/only-lower-check.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -irce-print-range-checks -irce-print-changed-loops -verify-loop-info -irce < %s 2>&1 | FileCheck %s
; RUN: opt -irce-print-range-checks -irce-print-changed-loops -verify-loop-info -passes=irce < %s 2>&1 | FileCheck %s
; RUN: opt -irce-print-range-checks -irce-print-changed-loops -verify-loop-info -passes='require<branch-prob>,irce' < %s 2>&1 | FileCheck %s

; CHECK: irce: loop has 1 inductive range checks:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/only-upper-check.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce -irce-print-range-checks -irce-print-changed-loops %s -S 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -passes=irce -irce-print-range-checks -irce-print-changed-loops %s -S 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -passes='require<branch-prob>,irce' -irce-print-range-checks -irce-print-changed-loops %s -S 2>&1 | FileCheck %s

; CHECK: irce: loop has 1 inductive range checks:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/optimistic_scev.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s

; CHECK-LABEL: irce: in function test_01: constrained Loop at depth 2 containing:

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/pr40539.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -irce -S < %s | FileCheck %s
; RUN: opt -passes=irce -S < %s | FileCheck %s
; RUN: opt -passes='require<branch-prob>,irce' -S < %s | FileCheck %s

@array = external global [1528 x i16], align 1
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/pr48051.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -irce -S | FileCheck %s
; RUN: opt < %s -passes=irce -S | FileCheck %s

; Reduced from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26832

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/pr57335.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/pre_post_loops.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; CHECK: irce: in function test_01: constrained Loop at depth 1 containing: %loop<header><exiting>,%in.bounds<latch><exiting>
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/range_intersect_miscompile.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; CHECK-LABEL: irce: in function test_01: constrained Loop at depth 1 containing:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/ranges_of_different_types.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; Make sure we can eliminate range check with signed latch, unsigned IRC and
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/rc-negative-bound.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; CHECK-NOT: irce: in function test_01: constrained Loop
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/single-access-no-preloop.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce -S < %s | FileCheck %s
; RUN: opt -verify-loop-info -passes=irce -S < %s | FileCheck %s
; RUN: opt -verify-loop-info -passes='require<branch-prob>,irce' -S < %s | FileCheck %s

define void @single_access_no_preloop_no_offset(ptr %arr, ptr %a_len_ptr, i32 %n) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/single-access-with-preloop.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce -S < %s | FileCheck %s
; RUN: opt -verify-loop-info -passes=irce -S < %s | FileCheck %s
; RUN: opt -verify-loop-info -passes='require<branch-prob>,irce' -S < %s | FileCheck %s

define void @single_access_with_preloop(ptr %arr, ptr %a_len_ptr, i32 %n, i32 %offset) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/skip-profitability-checks.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -irce-skip-profitability-checks -S -verify-loop-info -irce < %s | FileCheck %s
; RUN: opt -irce-skip-profitability-checks -S -verify-loop-info -passes=irce < %s | FileCheck %s
; RUN: opt -irce-skip-profitability-checks -S -verify-loop-info -passes='require<branch-prob>,irce' < %s | FileCheck %s

define void @single_access_no_preloop_no_offset(ptr %arr, ptr %a_len_ptr, i32 %n) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/stride_more_than_1.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; CHECK: irce: in function test_01: constrained Loop at depth 1 containing: %loop<header><exiting>,%in.bounds<latch><exiting>
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/unhandled.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -irce-print-changed-loops -verify-loop-info -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -irce-print-changed-loops -verify-loop-info -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -irce-print-changed-loops -verify-loop-info -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; CHECK-NOT: constrained Loop at depth
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/unsigned_comparisons_ugt.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; CHECK: irce: in function test_01: constrained Loop at depth 1 containing: %loop<header><exiting>,%in.bounds<latch><exiting>
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/unsigned_comparisons_ult.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -S < %s 2>&1 | FileCheck %s

; CHECK: irce: in function test_01: constrained Loop at depth 1 containing: %loop<header><exiting>,%in.bounds<latch><exiting>
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/variable-loop-bounds.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -irce -S -verify-loop-info -irce-print-changed-loops -irce-skip-profitability-checks < %s 2>&1 | FileCheck %s
; RUN: opt -passes=irce -S -verify-loop-info -irce-print-changed-loops -irce-skip-profitability-checks < %s 2>&1 | FileCheck %s

; CHECK: irce: in function test_inc_eq: constrained Loop at depth 1 containing: %for.body<header>,%if.else,%if.then,%for.inc<latch><exiting>
; CHECK: irce: in function test_inc_ne: constrained Loop at depth 1 containing: %for.body<header>,%if.else,%if.then,%for.inc<latch><exiting>
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/wide_indvar.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce -irce-allow-narrow-latch=true -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce -irce-allow-narrow-latch=true -S < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' -irce-allow-narrow-latch=true -S < %s 2>&1 | FileCheck %s

; Check that we can remove trivially non-failing range check.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IRCE/with-parent-loops.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify-loop-info -irce-print-changed-loops -irce < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes=irce < %s 2>&1 | FileCheck %s
; RUN: opt -verify-loop-info -irce-print-changed-loops -passes='require<branch-prob>,irce' < %s 2>&1 | FileCheck %s

; This test checks if we update the LoopInfo correctly in the presence
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
; }

; clang++ -g -O -mllvm -disable-llvm-optzns -gno-column-info
; opt -mem2reg -loop-rotate -scalar-evolution
; opt -passes=mem2reg,loop-rotate -scalar-evolution

; CHECK: @main
; CHECK: llvm.dbg.value(metadata i32 1, metadata [[METADATA_IDX1:![0-9]+]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
; }

; clang++ -g -O -mllvm -disable-llvm-optzns -gno-column-info
; opt -mem2reg -scalar-evolution
; opt -passes=mem2reg -scalar-evolution

; CHECK: @main
; CHECK: llvm.dbg.value(metadata i32 1, metadata [[METADATA_IDX1:![0-9]+]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; This testcase can be simplified by "realizing" that alloca can never return
; null.
; RUN: opt < %s -instcombine -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
; RUN: opt < %s -passes=instcombine,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
; CHECK-NOT: br

declare i32 @bitmap_clear(...)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -instcombine -mem2reg -simplifycfg -simplifycfg-require-and-preserve-domtree=1 | \
; RUN: opt < %s -passes=instcombine,mem2reg,simplifycfg -simplifycfg-require-and-preserve-domtree=1 | \
; RUN: llvm-dis | grep -v store | not grep "i32 1"

; Test to make sure that instcombine does not accidentally propagate the load
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -instcombine -S | grep 0x7FF8000000000000 | count 12
; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -instcombine -S | grep "0\.0" | count 3
; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -instcombine -S | grep "3\.5" | count 1
; RUN: opt < %s -passes=simplifycfg,instcombine -simplifycfg-require-and-preserve-domtree=1 -S | grep 0x7FF8000000000000 | count 12
; RUN: opt < %s -passes=simplifycfg,instcombine -simplifycfg-require-and-preserve-domtree=1 -S | grep "0\.0" | count 3
; RUN: opt < %s -passes=simplifycfg,instcombine -simplifycfg-require-and-preserve-domtree=1 -S | grep "3\.5" | count 1
;

; ModuleID = 'apf.c'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -instcombine -S | grep 0x3FB99999A0000000 | count 2
; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -instcombine -S | grep 0xBFB99999A0000000 | count 2
; RUN: opt < %s -passes=simplifycfg,instcombine -simplifycfg-require-and-preserve-domtree=1 -S | grep 0x3FB99999A0000000 | count 2
; RUN: opt < %s -passes=simplifycfg,instcombine -simplifycfg-require-and-preserve-domtree=1 -S | grep 0xBFB99999A0000000 | count 2
; check constant folding for 'frem'. PR 3316.

; ModuleID = 'tt.c'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -inline -instcombine -function-attrs | llvm-dis
; RUN: opt < %s -passes=inline,instcombine,function-attrs | llvm-dis
;
; Check that nocapture attributes are added when run after an SCC pass.
; PR3520
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/2010-11-01-lshr-mask.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -instcombine -instcombine-infinite-loop-threshold=2 -S < %s | FileCheck %s
; RUN: opt -passes=instcombine -instcombine-infinite-loop-threshold=2 -S < %s | FileCheck %s

; <rdar://problem/8606771>
define i32 @main(i32 %argc) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/AMDGPU/permlane64.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -mtriple=amdgcn-amd-amdhsa -instcombine -S | FileCheck %s
; RUN: opt < %s -mtriple=amdgcn-amd-amdhsa -passes=instcombine -S | FileCheck %s

; Optimize the intrinsic away if the argument is uniform.
define i32 @test_constant() {
Expand Down
6 changes: 3 additions & 3 deletions llvm/test/Transforms/InstCombine/InferAlignAttribute.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -inline -instcombine %s | FileCheck %s --check-prefixes=CHECK,CHECK-INLINE
; RUN: opt -S -instcombine %s | FileCheck %s --check-prefixes=CHECK,CHECK-NOINLINE
; RUN: opt -S -passes=inline,instcombine %s | FileCheck %s --check-prefixes=CHECK,CHECK-INLINE
; RUN: opt -S -passes=instcombine %s | FileCheck %s --check-prefixes=CHECK,CHECK-NOINLINE

define ptr @widen_align_from_allocalign_callsite() {
; CHECK-LABEL: @widen_align_from_allocalign_callsite(
Expand Down Expand Up @@ -46,7 +46,7 @@ define ptr @my_aligned_alloc_3(i32 noundef %foo, i32 allocalign %alignment) {
ret ptr %call
}

; -inline is able to make my_aligned_alloc_3's arguments disappear and directly
; -passes=inline is able to make my_aligned_alloc_3's arguments disappear and directly
; call my_aligned_alloc_2, but the latter has no allocalign so the alignment just
; disappears. This is conservatively correct but undesirable because we can't
; figure out the `align 128` on the return value once the call is directly on
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/and.ll
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ define i32 @test34(i32 %A, i32 %B) {
ret i32 %t4
}

; FIXME: This test should only need -instsimplify (ValueTracking / computeKnownBits), not -passes=instcombine.
; FIXME: This test should only need -passes=instsimplify (ValueTracking / computeKnownBits), not -passes=instcombine.

define <2 x i32> @PR24942(<2 x i32> %x) {
; CHECK-LABEL: @PR24942(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/bitreverse-hang.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -loop-unroll -instcombine -S | FileCheck %s
; RUN: opt < %s -passes=loop-unroll,instcombine -S | FileCheck %s

; This test is a worst-case scenario for bitreversal/byteswap detection.
; After loop unrolling (the unrolled loop is unreadably large so it has been kept
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/bittest.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -instcombine -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S |\
; RUN: opt < %s -passes=instcombine,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S |\
; RUN: not grep "call void @abort"

@b_rec.0 = external global i32 ; <ptr> [#uses=2]
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/cast-call-combine.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -instcombine -always-inline -S | FileCheck %s
; RUN: opt < %s -passes='function(instcombine),always-inline' -S | FileCheck %s

define internal void @foo(ptr) alwaysinline {
ret void
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/constrained.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instcombine %s | FileCheck %s
; RUN: opt -S -passes=instcombine %s | FileCheck %s

; Treatment of operation with unused result.

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/default-alignment.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -verify -instcombine < %s
; RUN: opt -passes=verify,instcombine < %s
%Foo = type <{ i8, x86_fp80 }>

define i8 @t(ptr %arg) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
; or into
; x ^ (~y)

; While -reassociate does handle this simple pattern, it does not handle
; While -passes=reassociate does handle this simple pattern, it does not handle
; the more complicated motivating pattern.

; ============================================================================ ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Test that -disable-simplify-libcalls is wired up correctly.
;
; RUN: opt < %s -instcombine -disable-simplify-libcalls -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -disable-simplify-libcalls -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -disable-simplify-libcalls -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

; Hand-reduced from this example.
; -g -O -mllvm -disable-llvm-optzns -gno-column-info
; plus opt -sroa -instcombine -inline
; plus opt -sroa -passes=instcombine -inline

; #include <stdio.h>
;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -inline -instcombine -S | FileCheck %s
; RUN: opt < %s -passes=inline,instcombine -S | FileCheck %s

; This test case exposed a bug in instcombine where the early
; DCE of a call wasn't recognized as changing the IR.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -passes=instcombine -S %s | FileCheck %s
; RUN: opt -passes=instcombine -S %s | FileCheck %s

target datalayout = "e-p:32:32:32-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin9.6"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instcombine %s | FileCheck %s
; RUN: opt -S -passes=instcombine %s | FileCheck %s

@var = external global i32, align 4

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
; sub %y, (xor %x, -1)
; Transform it to:
; add (add %x, 1), %y
; We prefer this form because that is what -reassociate would produce.
; We prefer this form because that is what -passes=reassociate would produce.

;------------------------------------------------------------------------------;
; Scalar tests
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/force-opaque-ptr.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instcombine -opaque-pointers < %s | FileCheck %s
; RUN: opt -S -passes=instcombine -opaque-pointers < %s | FileCheck %s

@g = global [16 x i16] zeroinitializer

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/fputs-opt-size.ll
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
; RUN: opt < %s -passes='require<profile-summary>,function(instcombine)' -pgso -S | FileCheck %s -check-prefix=PGSO
; RUN: opt < %s -instcombine -pgso=false -S | FileCheck %s -check-prefix=NPGSO
; RUN: opt < %s -passes=instcombine -pgso=false -S | FileCheck %s -check-prefix=NPGSO

%struct._IO_FILE = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i16, i8, [1 x i8], ptr, i64, ptr, ptr, ptr, ptr, i32, i32, [40 x i8] }
%struct._IO_marker = type { ptr, ptr, i32 }
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/gc.relocate-verify.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -passes=verify < %s | FileCheck %s
; RUN: opt -passes=verify -S < %s | FileCheck %s

target triple = "x86_64-unknown-linux-gnu"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -inline -instcombine -S | FileCheck %s
; RUN: opt < %s -passes=inline,instcombine -S | FileCheck %s

; PR22857: http://llvm.org/bugs/show_bug.cgi?id=22857
; The inliner should not add an edge to an intrinsic and
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/intptr1.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

define void @test1(ptr %a, ptr readnone %a_end, ptr %b.i64) {
; CHECK-LABEL: @test1(
Expand Down
8 changes: 4 additions & 4 deletions llvm/test/Transforms/InstCombine/intptr2.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

define void @test1(float* %a, float* readnone %a_end, i32* %b.i) {
; CHECK-LABEL: @test1
Expand All @@ -17,19 +17,19 @@ for.body: ; preds = %for.body, %for.body
%a.addr.03 = phi float* [ %incdec.ptr, %for.body ], [ %a, %for.body.preheader ]
%b.addr.02 = phi i64 [ %add.int, %for.body ], [ %b, %for.body.preheader ]
; CHECK: %a.addr.03 = phi float* [ %incdec.ptr, %for.body ], [ %a, %for.body.preheader ]
; CHECK-NOT: phi i64
; CHECK-NOT: phi i64
%tmp = inttoptr i64 %b.addr.02 to float*
; CHECK-NOT: inttoptr
%tmp1 = load float, float* %tmp, align 4
; CHECK: = load
%mul.i = fmul float %tmp1, 4.200000e+01
store float %mul.i, float* %a.addr.03, align 4
%add = getelementptr inbounds float, float* %tmp, i64 1
; CHECK: %add =
; CHECK: %add =
%add.int = ptrtoint float* %add to i64
; CHECK-NOT: ptrtoint
%incdec.ptr = getelementptr inbounds float, float* %a.addr.03, i64 1
; CHECK: %incdec.ptr =
; CHECK: %incdec.ptr =
%cmp = icmp ult float* %incdec.ptr, %a_end
br i1 %cmp, label %for.body, label %for.end

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/intptr3.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

define void @test(ptr %a, ptr readnone %a_end, i64 %b) unnamed_addr {
; CHECK-LABEL: @test(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/intptr4.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

define void @test(ptr %a, ptr readnone %a_end, i64 %b, ptr %bf) unnamed_addr {
; CHECK-LABEL: @test(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/intptr5.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

define void @test(ptr %a, ptr readnone %a_end, i64 %b, ptr %bf) unnamed_addr {
; CHECK-LABEL: @test(
Expand Down
6 changes: 3 additions & 3 deletions llvm/test/Transforms/InstCombine/intptr6.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -passes=instcombine -S
; RUN: opt < %s -passes=instcombine -S
; no crash

%A = type { %B }
Expand Down Expand Up @@ -84,7 +84,7 @@ declare void @scale() local_unnamed_addr #2 align 2
declare void @lazy() unnamed_addr #2 align 2

attributes #0 = { inlinehint sanitize_memory uwtable}
attributes #1 = { nobuiltin }
attributes #2 = { sanitize_memory uwtable }
attributes #1 = { nobuiltin }
attributes #2 = { sanitize_memory uwtable }
attributes #3 = { builtin }

2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/intptr7.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

define void @matching_phi(i64 %a, ptr %b, i1 %cond) {
; CHECK-LABEL: @matching_phi(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/intptr8.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

; PR45033: Don't try to insert a cast into a catchswich block.

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/lifetime.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -instcombine-infinite-loop-threshold=2 -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -instcombine-infinite-loop-threshold=2 -S | FileCheck %s

declare void @llvm.dbg.declare(metadata, metadata, metadata)
declare void @llvm.lifetime.start.p0(i64, ptr nocapture)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; Check that the instcombine result is the same with/without debug info.
; This is a regression test for a function taken from malloc-free-delete.ll.

; RUN: opt < %s -instcombine -S > %t.no_dbg.ll
; RUN: opt < %s -debugify-each -instcombine -S > %t.ll
; RUN: opt < %s -passes=instcombine -S > %t.no_dbg.ll
; RUN: opt < %s -debugify-each -passes=instcombine -S > %t.ll
; RUN: diff %t.no_dbg.ll %t.ll

declare void @free(ptr)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -instcombine-infinite-loop-threshold=3 -S | FileCheck %s
; RUN: opt < %s -passes=instcombine -instcombine-infinite-loop-threshold=3 -S | FileCheck %s

@var_7 = external global i8, align 1
@var_1 = external global i32, align 4
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/musttail-thunk.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: opt -passes=instcombine -S < %s | FileCheck %s
; RUN: opt -debugify-each -instcombine -S < %s | FileCheck %s
; RUN: opt -debugify-each -passes=instcombine -S < %s | FileCheck %s

; These are both direct calls, but make sure instcombine leaves the casts
; alone.
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/InstCombine/no_cgscc_assert.ll
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; RUN: opt < %s -inline -instcombine -S | FileCheck %s
; RUN: opt < %s -passes=inline,instcombine -S | FileCheck %s

; PR21403: http://llvm.org/bugs/show_bug.cgi?id=21403
; When the call to sqrtf is replaced by an intrinsic call to fabs,
; it should not cause a problem in CGSCC.
; it should not cause a problem in CGSCC.

define float @bar(float %f) #0 {
%mul = fmul fast float %f, %f
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/no_sink_instruction.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -instcombine -instcombine-code-sinking=0 -S < %s | FileCheck %s
; RUN: opt -passes=instcombine -instcombine-code-sinking=0 -S < %s | FileCheck %s

define i32 @test(i1 %C, i32 %A, i32 %B) {
; CHECK-LABEL: @test(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/pr30929.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; We need this pipeline because to trigger dominator info verification
; we have to compute the dominator before libcalls-shrinkwrap and
; have a pass which requires the dominator tree after.
; RUN: opt -libcalls-shrinkwrap -instcombine -verify-dom-info %s
; RUN: opt -passes=libcalls-shrinkwrap,instcombine -verify-dom-info %s

define void @main() {
%_tmp31 = call float @acosf(float 2.000000e+00)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/pr55228.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instcombine < %s | FileCheck %s
; RUN: opt -S -passes=instcombine < %s | FileCheck %s

target datalayout = "p:8:8"

Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/InstCombine/preserved-analyses.ll
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
; transform.
;
; RUN: opt < %s -disable-output -debug-pass-manager 2>&1 -aa-pipeline=basic-aa,globals-aa \
; RUN: -passes='require<globals-aa>,function(require<aa>,instcombine),function(require<aa>)' \
; RUN: -passes='require<globals-aa>,function(require<aa>,instcombine),function(require<aa>)' \
; RUN: | FileCheck %s --check-prefix=AA
; AA: Running analysis: GlobalsAA
; AA: Running analysis: AAManager
Expand All @@ -18,7 +18,7 @@
; AA-NOT: Running analysis: BasicAA
;
; RUN: opt < %s -disable-output -debug-pass-manager 2>&1 \
; RUN: -passes='require<domtree>,instcombine,require<domtree>' \
; RUN: -passes='require<domtree>,instcombine,require<domtree>' \
; RUN: | FileCheck %s --check-prefix=DT
; DT: Running analysis: DominatorTreeAnalysis
; DT: Running pass: InstCombinePass on test
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/ptrtoint-nullgep.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes
; Check that we can fold operations with (gep null) inputs.
; Note: the LLParser already does some constant folding, check that output first:
; RUN: opt -S -passes=verify < %s | FileCheck %s --check-prefixes=ALL,LLPARSER
; RUN: opt -passes=verify -S < %s | FileCheck %s --check-prefixes=ALL,LLPARSER
; We should be able to fold almost everything in InstSimplify other than the final test which requries InstCombine
; RUN: opt -S -passes=instsimplify < %s | FileCheck %s --allow-unused-prefixes --check-prefixes=ALL,CHECK,INTEGRAL,INSTSIMPLIFY,INTEGRAL-INSTSIMPLIFY
; RUN: opt -S -passes=instcombine < %s | FileCheck %s --allow-unused-prefixes --check-prefixes=ALL,CHECK,INTEGRAL,INSTCOMBINE,INTEGRAL-INSTCOMBINE
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/sdiv-1.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -inline -S | FileCheck %s
; RUN: opt < %s -passes='function(instcombine),cgscc(inline)' -S | FileCheck %s
; PR3142

define i32 @a(i32 %X) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/storemerge-dbg.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -debugify -instcombine -S | FileCheck %s
; RUN: opt < %s -passes=debugify,instcombine -S | FileCheck %s

declare i32 @escape(i32)

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/strto-1.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Test that the strto* library call simplifiers works correctly.
;
; RUN: opt < %s -instcombine -inferattrs -S | FileCheck %s
; RUN: opt < %s -passes='function(instcombine),inferattrs' -S | FileCheck %s

target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/vscale_alloca.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instcombine -verify < %s | FileCheck %s
; RUN: opt -S -passes=instcombine,verify < %s | FileCheck %s

define <vscale x 4 x i32> @alloca(<vscale x 4 x i32> %z) {
; CHECK-LABEL: @alloca(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstCombine/vscale_load.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -S -verify | FileCheck %s
; RUN: opt < %s -passes=instcombine,verify -S | FileCheck %s

define <2 x i8> @constprop_load_bitcast(ptr %ptr) {
; CHECK-LABEL: @constprop_load_bitcast(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstMerge/exceptions.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -mldst-motion -S < %s | FileCheck %s
; RUN: opt -passes=mldst-motion -S < %s | FileCheck %s
; RUN: opt -aa-pipeline=basic-aa -passes='require<memdep>',mldst-motion \
; RUN: -S < %s | FileCheck %s

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstMerge/st_sink_barrier_call.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Test to make sure that a function call that needs to be a barrier to sinking stores is indeed a barrier.
; Stores sunks into the footer.
; RUN: opt -mldst-motion -S < %s | FileCheck %s
; RUN: opt -passes=mldst-motion -S < %s | FileCheck %s
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"

%struct.node = type { i32, ptr, ptr, ptr, i32, i32, i32, i32 }
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstMerge/st_sink_check_debug.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -S -debugify -mldst-motion -o - | FileCheck %s
; RUN: opt < %s -S -passes=debugify,mldst-motion -o - | FileCheck %s

%struct.S = type { i32 }

Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/InstMerge/st_sink_debuginvariant.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: opt < %s -S -mldst-motion -o - | FileCheck %s
; RUN: opt < %s -S -strip-debug -mldst-motion -o - | FileCheck %s
; RUN: opt < %s -S -passes=mldst-motion -o - | FileCheck %s
; RUN: opt < %s -S -strip-debug -passes=mldst-motion -o - | FileCheck %s

; Verify that the amount of stores that are sunk is invariant regarding debug
; info. This used to fail due to including dbg.value instructions when
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstMerge/st_sink_no_barrier_call.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Test to make sure that stores in a diamond get merged with a non barrier function call after the store instruction
; Stores sunks into the footer.
; RUN: opt -mldst-motion -S < %s | FileCheck %s
; RUN: opt -passes=mldst-motion -S < %s | FileCheck %s
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"

%struct.node = type { i32, ptr, ptr, ptr, i32, i32, i32, i32 }
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstMerge/st_sink_no_barrier_load.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Test to make sure that stores in a diamond get merged with a non barrier load after the store instruction
; Stores sunks into the footer.
; RUN: opt -mldst-motion -S < %s | FileCheck %s
; RUN: opt -passes=mldst-motion -S < %s | FileCheck %s
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"

%struct.node = type { i32, ptr, ptr, ptr, i32, i32, i32, i32 }
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstMerge/st_sink_no_barrier_store.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Test to make sure that stores in a diamond get merged with a non barrier store after the store instruction to be sunk
; Stores sunks into the footer.
; RUN: opt -mldst-motion -S < %s | FileCheck %s
; RUN: opt -passes=mldst-motion -S < %s | FileCheck %s
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"

%struct.node = type { i32, ptr, ptr, ptr, i32, i32, i32, i32 }
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstMerge/st_sink_split_bb.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; Test to make sure that a new block is inserted if we
; have more than 2 predecessors for the block we're going to sink to.
; RUN: opt -mldst-motion -S < %s | FileCheck %s --check-prefix=CHECK-NO
; RUN: opt -passes=mldst-motion -S < %s | FileCheck %s --check-prefix=CHECK-NO
; RUN: opt -debug-pass-manager -aa-pipeline=basic-aa -passes='require<memdep>,mldst-motion' -S < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-NO,CHECK-INV-NO
; RUN: opt -debug-pass-manager -aa-pipeline=basic-aa -passes='require<memdep>,mldst-motion<split-footer-bb>' -S < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-YES,CHECK-INV-YES
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstMerge/st_sink_two_stores.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Test to make sure that stores in a diamond get merged
; Stores sunks into the footer.
; RUN: opt -mldst-motion -S < %s | FileCheck %s
; RUN: opt -passes=mldst-motion -S < %s | FileCheck %s
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"

%struct.node = type { i32, ptr, ptr, ptr, i32, i32, i32, i32 }
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstMerge/st_sink_with_barrier.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; Test to make sure that load from the same address as a store and appears after the store prevents the store from being sunk
; RUN: opt -mldst-motion -S < %s | FileCheck %s
; RUN: opt -passes=mldst-motion -S < %s | FileCheck %s
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"

%struct.node = type { i32, ptr, ptr, ptr, i32, i32, i32, i32 }
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/2011-10-27-BinOpCrash.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine
; RUN: opt < %s -passes=instcombine

@_ZN11xercesc_2_5L11gDigitCharsE = external constant [32 x i16], align 2
@_ZN11xercesc_2_5L10gBaseCharsE = external constant [354 x i16], align 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; SetCC on boolean values was not implemented!

; RUN: opt < %s -instsimplify -dce -S | \
; RUN: opt < %s -passes=instsimplify,dce -S | \
; RUN: not grep set

define i1 @test1() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -instcombine -S | \
; RUN: opt < %s -passes=instcombine -S | \
; RUN: grep "ret i1 false"
define i1 @test() {
%X = trunc i32 320 to i1 ; <i1> [#uses=1]
Expand Down
14 changes: 7 additions & 7 deletions llvm/test/Transforms/InstSimplify/ConstProp/basictest.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -instsimplify -dce -S | FileCheck %s
; RUN: opt < %s -passes=instsimplify,dce -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"
target triple = "x86_64-apple-macosx10.7.2"
Expand All @@ -8,17 +8,17 @@ target triple = "x86_64-apple-macosx10.7.2"
define i32 @test1(i1 %B) {
br i1 %B, label %BB1, label %BB2

BB1:
BB1:
%Val = add i32 0, 0
br label %BB3

BB2:
BB2:
br label %BB3

BB3:
BB3:
; CHECK-LABEL: @test1(
; CHECK: %Ret = phi i32 [ 0, %BB1 ], [ 1, %BB2 ]
%Ret = phi i32 [ %Val, %BB1 ], [ 1, %BB2 ]
%Ret = phi i32 [ %Val, %BB1 ], [ 1, %BB2 ]
ret i32 %Ret
}

Expand All @@ -30,7 +30,7 @@ entry:
br label %bb
bb:
ret i1 %V

; CHECK-LABEL: @test2(
; CHECK: ret i1 true
}
Expand All @@ -50,4 +50,4 @@ define i128 @vector_to_int_cast() {
; CHECK-LABEL: @vector_to_int_cast(
; CHECK: ret i128 85070591750041656499021422275829170176
}

2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/ConstProp/div-zero.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -instcombine -S | grep "ret i32 0"
; RUN: opt < %s -passes=instcombine -S | grep "ret i32 0"
; PR4424
declare void @ext()

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/ConstProp/gep-alias.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -instcombine -S -o - %s | FileCheck %s
; RUN: opt -passes=instcombine -S -o - %s | FileCheck %s
; Test that we don't replace an alias with its aliasee when simplifying GEPs.
; In this test case the transformation is invalid because it replaces the
; reference to the symbol "b" (which refers to whichever instance of "b"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -gvn -S -o - %s | FileCheck %s
; RUN: opt -passes=gvn -S -o - %s | FileCheck %s
; RUN: opt -passes=newgvn -S -o - %s | FileCheck %s
; Test that the constantfolding getelementptr computation results in
; j[5][4][1] (j+239)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/ConstProp/gep.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -instcombine -S -o - %s | FileCheck %s
; RUN: opt -passes=instcombine -S -o - %s | FileCheck %s
; Tests that we preserve the inrange attribute on indices where possible.

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/ConstProp/icmp-global.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instsimplify -S -verify | FileCheck %s
; RUN: opt < %s -passes=instsimplify,verify -S | FileCheck %s

define i1 @ule_null_constexpr(ptr %x) {
; CHECK-LABEL: @ule_null_constexpr(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/ConstProp/logicaltest.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Ensure constant propagation of logical instructions is working correctly.

; RUN: opt < %s -instsimplify -dce -S | FileCheck %s
; RUN: opt < %s -passes=instsimplify,dce -S | FileCheck %s
; CHECK-NOT: {{and|or|xor}}

define i32 @test1() {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/ConstProp/phi.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; This is a basic correctness check for constant propagation. The add
; instruction should be eliminated.

; RUN: opt < %s -instsimplify -dce -S | not grep phi
; RUN: opt < %s -passes=instsimplify,dce -S | not grep phi

define i32 @test(i1 %B) {
BB0:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/ConstProp/remtest.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Ensure constant propagation of remainder instructions is working correctly.

; RUN: opt < %s -instsimplify -dce -S | not grep rem
; RUN: opt < %s -passes=instsimplify,dce -S | not grep rem

define i32 @test1() {
%R = srem i32 4, 3 ; <i32> [#uses=1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -instcombine -S -o - %s | FileCheck %s
; RUN: opt -passes=instcombine -S -o - %s | FileCheck %s
; Tests that we don't crash upon encountering a vector GEP

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Expand Down Expand Up @@ -32,7 +32,7 @@ vector.body:
}

; CHECK-LABEL: @test2
; CHECK: ret <16 x ptr> getelementptr ([65 x %struct.A], ptr @G, <16 x i64> zeroinitializer, <16 x i64> <i64 1, i64 2, i64 3, i64 4, i64 5, i64 6, i64 7, i64 8, i64 9,
; CHECK: ret <16 x ptr> getelementptr ([65 x %struct.A], ptr @G, <16 x i64> zeroinitializer, <16 x i64> <i64 1, i64 2, i64 3, i64 4, i64 5, i64 6, i64 7, i64 8, i64 9,
define <16 x ptr> @test2() {
vector.body:
%VectorGep = getelementptr [65 x %struct.A], ptr @G, <16 x i32> zeroinitializer, <16 x i64> <i64 1, i64 2, i64 3, i64 4, i64 5, i64 6, i64 7, i64 8, i64 9, i64 10, i64 11, i64 12, i64 13, i64 14, i64 15, i64 16>, <16 x i32> zeroinitializer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instsimplify -S -verify | FileCheck %s
; RUN: opt < %s -passes=instsimplify,verify -S | FileCheck %s

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Unary Operations
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/ConstProp/vscale.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instsimplify -S -verify | FileCheck %s
; RUN: opt < %s -passes=instsimplify,verify -S | FileCheck %s

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Unary Operations
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/add_vp.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instsimplify -S | FileCheck %s
; RUN: opt < %s -passes=instsimplify -S | FileCheck %s

declare <2 x i32> @llvm.vp.add.v2i32(<2 x i32>, <2 x i32>, <2 x i1>, i32)
declare <2 x i32> @llvm.vp.sub.v2i32(<2 x i32>, <2 x i32>, <2 x i1>, i32)
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/and-or-implied-cond.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instsimplify < %s | FileCheck %s
; RUN: opt -S -passes=instsimplify < %s | FileCheck %s

define i1 @or_implied(i8 %x, i1 %c) {
; CHECK-LABEL: @or_implied(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instsimplify < %s | FileCheck %s
; RUN: opt -S -passes=instsimplify < %s | FileCheck %s

; Test cases for denormal handling mode when constant folding floating point
; operations. Input and output modes are checked seperately.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -passes=instsimplify -S < %s | FileCheck %s
; RUN: opt -passes=instsimplify -S < %s | FileCheck %s

; Test back to back reverse shuffles are eliminated.
define <vscale x 4 x i32> @shuffle_b2b_reverse(<vscale x 4 x i32> %a) {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/opaque-ptr.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instsimplify -opaque-pointers < %s | FileCheck %s
; RUN: opt -S -passes=instsimplify -opaque-pointers < %s | FileCheck %s

define ptr @gep_zero_indices(ptr %p) {
; CHECK-LABEL: @gep_zero_indices(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/pr33957.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -loop-unroll -S %s | FileCheck %s
; RUN: opt -passes=loop-unroll -S %s | FileCheck %s

%struct.bar = type { i32 }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -always-inline -S %s | FileCheck %s
; RUN: opt -passes=always-inline -S %s | FileCheck %s
%0 = type { i64, i64, ptr addrspace(1), ptr addrspace(1) }
%__aaa_struct = type { { ptr, i32, i32, ptr, ptr addrspace(1) }, %0, [17 x i8], { ptr, i32, i32, ptr, ptr addrspace(1) }, %0, [18 x i8] }
%struct.__block_descriptor = type { i64, i64 }
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/vscale-inseltpoison.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instsimplify -S -verify | FileCheck %s
; RUN: opt < %s -passes=instsimplify,verify -S | FileCheck %s

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Vector Operations
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/InstSimplify/vscale.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instsimplify -S -verify | FileCheck %s
; RUN: opt < %s -passes=instsimplify,verify -S | FileCheck %s

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Vector Operations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -jump-threading < %s | FileCheck %s
; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
; PR9446
; Just check that it doesn't crash

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -loop-simplify -lcssa -S | FileCheck %s
; RUN: opt < %s -passes=loop-simplify,lcssa -S | FileCheck %s

%struct.SetJmpMapEntry = type { i8*, i32, %struct.SetJmpMapEntry* }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa -S | FileCheck %s
; RUN: opt < %s -passes=lcssa -S | FileCheck %s
; RUN: opt < %s -passes=lcssa -S | FileCheck %s

declare i1 @c1()
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/2006-07-09-NoDominator.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa
; RUN: opt < %s -passes=lcssa
; RUN: opt < %s -passes=lcssa

%struct.SetJmpMapEntry = type { i8*, i32, %struct.SetJmpMapEntry* }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa -disable-output -verify-dom-info -verify-loop-info
; RUN: opt < %s -passes=lcssa -disable-output -verify-dom-info -verify-loop-info
; PR977
; END.
declare i32 @opost_block()
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/2006-10-31-UnreachableBlock.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa -disable-output
; RUN: opt < %s -passes=lcssa -disable-output
; RUN: opt < %s -passes=lcssa -disable-output
; PR977
; END.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/2007-07-12-LICM-2.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -loop-rotate -licm -simple-loop-unswitch -disable-output
; RUN: opt < %s -passes='loop-mssa(loop-rotate,licm)',simple-loop-unswitch -disable-output
define i32 @main(i32 %argc, i8** %argv) {
entry:
br label %bb7
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/2007-07-12-LICM-3.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -loop-rotate -licm -simple-loop-unswitch -disable-output
; RUN: opt < %s -passes='loop-mssa(loop-rotate,licm)',simple-loop-unswitch -disable-output

define i32 @main(i32 %argc, i8** %argv) {
entry:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/2007-07-12-LICM.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -loop-rotate -licm -simple-loop-unswitch -disable-output
; RUN: opt < %s -passes='loop-mssa(loop-rotate,licm)',simple-loop-unswitch -disable-output
define i32 @main(i32 %argc, i8** %argv) {
entry:
br label %bb7
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/DontInsertDebugValuesForPHIs.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa -S | FileCheck %s
; RUN: opt < %s -passes=lcssa -S | FileCheck %s

; This test ensures that LCSSA does not insert dbg.value intrinsics using
; insertDebugValuesForPHIs() which effectively cause assignments to be
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -debugify -licm -S -o /dev/null
; RUN: opt < %s -passes='debugify,function(loop-mssa(licm))' -S -o /dev/null
;
; The following test is from https://bugs.llvm.org/show_bug.cgi?id=36238
; This test should pass (not assert or fault). The error that originally
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/LCSSA/basictest.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; RUN: opt < %s -lcssa -S | FileCheck %s
; RUN: opt < %s -passes=lcssa -S | FileCheck %s
; RUN: opt < %s -debugify -lcssa -S | FileCheck -check-prefix=DEBUGIFY %s
; RUN: opt < %s -passes=lcssa -S | FileCheck %s
; RUN: opt < %s -passes=debugify,lcssa -S | FileCheck -check-prefix=DEBUGIFY %s

define void @lcssa(i1 %S2) {
; CHECK-LABEL: @lcssa
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/indirectbr.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -loop-simplify -lcssa -verify-loop-info -verify-dom-info -S | FileCheck %s
; RUN: opt < %s -passes=loop-simplify,lcssa -verify-loop-info -verify-dom-info -S | FileCheck %s

; LCSSA should work correctly in the case of an indirectbr that exits
; the loop, and the loop has exits with predecessors not within the loop
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/invoke-dest.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa
; RUN: opt < %s -passes=lcssa
; RUN: opt < %s -passes=lcssa

target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/mixed-catch.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -lcssa -S < %s | FileCheck %s
; RUN: opt -passes=lcssa -S < %s | FileCheck %s
; RUN: opt -passes=lcssa -S < %s | FileCheck %s

; This test is based on the following C++ code:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/pr28424.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa -S -o - | FileCheck %s
; RUN: opt < %s -passes=lcssa -S -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"

; PR28424
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/pr28608.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa -disable-output
; RUN: opt < %s -passes=lcssa -disable-output
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/remove-phis.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa -verify -S -o /dev/null
; RUN: opt < %s -passes=lcssa,verify -S -o /dev/null

; This bugpoint reduced test case used to assert when removing unused PHI nodes.
; Just verify that we do not assert/crash.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/rewrite-existing-dbg-values.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -lcssa < %s | FileCheck %s
; RUN: opt -S -passes=lcssa < %s | FileCheck %s

; Reproducer for PR39019.
;
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/unreachable-use.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -lcssa -S -verify-loop-info | FileCheck %s
; RUN: opt < %s -passes=lcssa -S -verify-loop-info | FileCheck %s

; LCSSA doesn't need to transform uses in blocks not reachable
; from the entry block.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LCSSA/unused-phis.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt < %s -lcssa -S | FileCheck %s
; RUN: opt < %s -passes=lcssa -S | FileCheck %s
; RUN: opt < %s -passes=lcssa -S | FileCheck %s
; CHECK: exit1:
; CHECK: .lcssa =
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LICM/dropped-tbaa.ll
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; RUN: opt < %s -passes=licm -S | FileCheck %s

; This test case case is generated from the following C code with -fstrict-aliasing,
; and after passing through -inline -mem2reg -loop-rotate -instcombine
; and after passing through -passes=inline,mem2reg,loop-rotate,instcombine
; void add(ptr restrict data, int *restrict addend) {
; *data += *addend;
; }
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/LICM/sink-foldable.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; REQUIRES: aarch64-registered-target

; RUN: opt < %s -passes=licm -S | FileCheck %s
; RUN: opt < %s -passes=licm -S | FileCheck %s

target triple = "aarch64--linux-gnueabi"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: opt -S -load-store-vectorizer --mcpu=hawaii -mattr=-unaligned-access-mode,+max-private-element-size-16 < %s | FileCheck -check-prefix=ALIGNED -check-prefix=ALL %s
; RUN: opt -S -load-store-vectorizer --mcpu=hawaii -mattr=+unaligned-access-mode,+unaligned-scratch-access,+max-private-element-size-16 < %s | FileCheck -check-prefix=UNALIGNED -check-prefix=ALL %s
; RUN: opt -S -passes=load-store-vectorizer --mcpu=hawaii -mattr=-unaligned-access-mode,+max-private-element-size-16 < %s | FileCheck -check-prefix=ALIGNED -check-prefix=ALL %s
; RUN: opt -S -passes=load-store-vectorizer --mcpu=hawaii -mattr=+unaligned-access-mode,+unaligned-scratch-access,+max-private-element-size-16 < %s | FileCheck -check-prefix=UNALIGNED -check-prefix=ALL %s
; RUN: opt -S -passes='function(load-store-vectorizer)' --mcpu=hawaii -mattr=-unaligned-access-mode,+max-private-element-size-16 < %s | FileCheck -check-prefix=ALIGNED -check-prefix=ALL %s
; RUN: opt -S -passes='function(load-store-vectorizer)' --mcpu=hawaii -mattr=+unaligned-access-mode,+unaligned-scratch-access,+max-private-element-size-16 < %s | FileCheck -check-prefix=UNALIGNED -check-prefix=ALL %s

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -mtriple=amdgcn-amd-amdhsa -load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -aa-pipeline=basic-aa -passes='function(load-store-vectorizer)' -S -o - %s | FileCheck %s

target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -mtriple=amdgcn-amd-amdhsa -load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -aa-pipeline=basic-aa -passes='function(load-store-vectorizer)' -S -o - %s | FileCheck %s

target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -S -mtriple=amdgcn--amdhsa -load-store-vectorizer < %s | FileCheck %s
; RUN: opt -S -mtriple=amdgcn--amdhsa -passes=load-store-vectorizer < %s | FileCheck %s
; RUN: opt -S -mtriple=amdgcn--amdhsa -passes='function(load-store-vectorizer)' < %s | FileCheck %s

target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -mtriple=amdgcn-amd-amdhsa -load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -aa-pipeline=basic-aa -passes='function(load-store-vectorizer)' -S -o - %s | FileCheck %s

target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -mtriple=amdgcn-amd-amdhsa -load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -aa-pipeline=basic-aa -passes='function(load-store-vectorizer)' -S -o - %s | FileCheck %s

target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: opt -mtriple=amdgcn-amd-amdhsa -load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=load-store-vectorizer -S -o - %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-amd-amdhsa -aa-pipeline=basic-aa -passes='function(load-store-vectorizer)' -S -o - %s | FileCheck %s

target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
Expand Down
Loading