-; RUN: opt < %s -jump-threading -S | grep "ret i32 0"
+; RUN: opt < %s -passes=jump-threading -S | grep "ret i32 0"
; PR3138
define i32 @jt() {
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-apple-darwin10.0.0"
-; RUN: opt < %s -jump-threading
+; RUN: opt -S -passes=jump-threading < %s
; PR9446
; Just check that it doesn't crash
-; RUN: opt -jump-threading < %s
+; RUN: opt -passes=jump-threading < %s
; <rdar://problem/9284786>
%0 = type <{ i64, i16, i64, i8, i8 }>
-; RUN: opt < %s -jump-threading
+; RUN: opt -S -passes=jump-threading < %s
; PR 13405
; Just check that it doesn't crash / assert
-; RUN: opt -S -jump-threading -verify -o - %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading,verify -o - %s | FileCheck %s
@a = external global i16, align 1
; CHECK-LABEL: f
-; RUN: opt -jump-threading -verify-each -S -mtriple=x86_64-- -o - %s
+; RUN: opt -passes=jump-threading -verify-each -S -mtriple=x86_64-- -o - %s
define void @foo() {
entry:
-; RUN: opt -S < %s -jump-threading -jump-threading-across-loop-headers | FileCheck %s
+; RUN: opt -S < %s -passes=jump-threading -jump-threading-across-loop-headers | FileCheck %s
; CHECK-LABEL: @foo
; Just check that we don't hang on this test.
; REQUIRES: asserts
-; RUN: opt -jump-threading -aa-pipeline basic-aa -S -disable-output %s
; RUN: opt -passes=jump-threading -aa-pipeline basic-aa -S -disable-output %s
define void @foo(ptr %arg1, ptr %arg2) {
-; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
+; RUN: opt < %s -passes=jump-threading,mem2reg,instcombine,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
declare i32 @f1()
declare i32 @f2()
-; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
+; RUN: opt < %s -passes=jump-threading,mem2reg,instcombine,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
declare i32 @f1()
declare i32 @f2()
-; RUN: opt -S -jump-threading < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
declare ptr @escape()
declare void @llvm.assume(i1)
-; RUN: opt -S -jump-threading -dce < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading,dce < %s | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
declare i32 @f1()
declare i32 @f2()
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S < %s -jump-threading | FileCheck %s
+; RUN: opt -S < %s -passes=jump-threading | FileCheck %s
define void @foo() {
; CHECK-LABEL: @foo(
-; RUN: opt %s -debugify -jump-threading -S | FileCheck %s
+; RUN: opt -S -passes=debugify,jump-threading < %s | FileCheck %s
; Tests Bug 37966
define void @test0(i32 %i) {
-; RUN: opt < %s -jump-threading -S | not grep phi
+; RUN: opt < %s -passes=jump-threading -S | not grep phi
declare i8 @mcguffin()
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -jump-threading | FileCheck %s
+; RUN: opt < %s -S -passes=jump-threading | FileCheck %s
; This test used to cause jump threading to try to split an edge of a callbr.
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S %s -o - | FileCheck %s --check-prefix=DEFAULT
-; RUN: opt -jump-threading -S -jump-threading-threshold=6 %s -o - | FileCheck %s --check-prefix=OVERIDE
+; RUN: opt -passes=jump-threading -S %s -o - | FileCheck %s --check-prefix=DEFAULT
+; RUN: opt -passes=jump-threading -S -jump-threading-threshold=6 %s -o - | FileCheck %s --check-prefix=OVERIDE
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
define i32 @test_minsize(i32 %argc, ptr nocapture readonly %argv) local_unnamed_addr #0 {
-; RUN: opt < %s -jump-threading -S | FileCheck %s
+; RUN: opt < %s -passes=jump-threading -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"
target triple = "i386-apple-darwin7"
; There should be no phi nodes left.
-; RUN: opt < %s -jump-threading -S | not grep "phi i32"
+; RUN: opt < %s -passes=jump-threading -S | not grep "phi i32"
declare i32 @f1()
declare i32 @f2()
-; RUN: opt -jump-threading -S %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S %s | FileCheck %s
; Check that we thread arg2neg -> checkpos -> end.
;
-; RUN: opt -jump-threading < %s -S -o - | FileCheck %s
+; RUN: opt -passes=jump-threading < %s -S -o - | FileCheck %s
; Reproducer for PR47297.
-; RUN: opt < %s -jump-threading -S | FileCheck %s
+; RUN: opt < %s -passes=jump-threading -S | FileCheck %s
; PR2285
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"
target triple = "x86_64-unknown-linux-gnu"
-; RUN: opt < %s -jump-threading -disable-output
+; RUN: opt < %s -passes=jump-threading -disable-output
%struct.ham = type { i8, i8, i16, i32 }
%struct.zot = type { ptr }
-; RUN: opt < %s -jump-threading -disable-output
+; RUN: opt < %s -passes=jump-threading -disable-output
%struct.aaa = type { i8 }
-; RUN: opt < %s -jump-threading -disable-output -verify-dom-info
+; RUN: opt < %s -passes=jump-threading -disable-output -verify-dom-info
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
-; RUN: opt < %s -jump-threading -disable-output -verify-dom-info
+; RUN: opt < %s -passes=jump-threading -disable-output -verify-dom-info
@global = external global i64, align 8
define void @f() {
-; RUN: opt -jump-threading -disable-output < %s
+; RUN: opt -passes=jump-threading -disable-output < %s
; PR9112
; This is actually a test for value tracking. Jump threading produces
; REQUIRES: amdgpu-registered-target && x86-registered-target
-; RUN: opt < %s -mtriple=amdgcn -jump-threading -S | FileCheck %s -check-prefixes=CHECK,DIVERGENT
-; RUN: opt < %s -mtriple=amdgcn -passes=jump-threading -S | FileCheck %s -check-prefixes=CHECK,DIVERGENT
-; RUN: opt < %s -mtriple=x86_64 -jump-threading -S | FileCheck %s -check-prefixes=CHECK,UNIFORM
-; RUN: opt < %s -mtriple=x86_64 -passes=jump-threading -S | FileCheck %s -check-prefixes=CHECK,UNIFORM
+; RUN: opt < %s -mtriple=amdgcn -passes=jump-threading -S | FileCheck %s -check-prefixes=CHECK,DIVERGENT
+; RUN: opt < %s -mtriple=amdgcn -passes=jump-threading -S | FileCheck %s -check-prefixes=CHECK,DIVERGENT
+; RUN: opt < %s -mtriple=x86_64 -passes=jump-threading -S | FileCheck %s -check-prefixes=CHECK,UNIFORM
+; RUN: opt < %s -mtriple=x86_64 -passes=jump-threading -S | FileCheck %s -check-prefixes=CHECK,UNIFORM
; Here we assure that for the target with no branch divergence usual Jump Threading optimization performed
; For target with branch divergence - no optimization, so the IR is unchanged.
-; RUN: opt -jump-threading -S -verify < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading,verify < %s | FileCheck %s
declare i32 @f1()
declare i32 @f2()
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -jump-threading -jump-threading-threshold=3 < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading -jump-threading-threshold=3 < %s | FileCheck %s
; TODO: In this test case, only the stores in %join should cound towards
; the jump threading threshold, as everything else are free instructions.
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
declare void @f()
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
declare void @f()
declare void @f2()
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
declare i32 @f1()
declare i32 @f2()
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -jump-threading -dce -S | FileCheck %s
+; RUN: opt -S -passes=jump-threading,dce < %s | FileCheck %s
declare void @llvm.experimental.guard(i1, ...)
; 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
; Check that the heuristic for avoiding accidental introduction of irreducible
; loops doesn't also prevent us from threading simple constructs where this
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
declare void @side_effect(i32)
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
; The indirectbr needs a block address. The add can't produce that.
; This shouldn't crash.
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S < %s -jump-threading | FileCheck %s
+; RUN: opt -S < %s -passes=jump-threading | FileCheck %s
define i1 @test1(i32 %0) #0 {
; CHECK-LABEL: @test1(
-; RUN: opt -S < %s -jump-threading | FileCheck %s
+; RUN: opt -S < %s -passes=jump-threading | FileCheck %s
; Keep block addresses alive.
@addresses = constant [4 x ptr] [
; 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
define i8 @test(i32 %a, i32 %length) {
; CHECK-LABEL: @test(
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
@a = common dso_local local_unnamed_addr global i16 0, align 2
; Function Attrs: nofree norecurse nounwind
-; RUN: opt -jump-threading -S -verify < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading,verify < %s | FileCheck %s
; This is reduced from the Linux net/ipv4/tcp.c file built with ASAN. We
; don't want jump threading to split up a basic block which has a PHI node with
-; RUN: opt < %s -disable-output -jump-threading
+; RUN: opt -passes=jump-threading -disable-output < %s
%class.E = type { ptr, %class.C }
%class.C = type { %class.A }
-; RUN: opt < %s -jump-threading -S -jump-threading-across-loop-headers | FileCheck %s
+; RUN: opt < %s -passes=jump-threading -S -jump-threading-across-loop-headers | FileCheck %s
; Make sure we correctly distinguish between %tmp15 and %tmp16 when we clone
; body2.
-; RUN: opt -S -jump-threading -dce < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading,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"
target triple = "x86_64-apple-darwin10.4"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading,simplifycfg -simplifycfg-require-and-preserve-domtree=1 < %s | FileCheck %s
declare void @ham()
define void @hoge() {
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S %s | FileCheck %s
declare i1 @cond()
-; RUN: opt < %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S -verify-dom-info -verify-loop-info > %t
+; RUN: opt -S < %s -passes=jump-threading,loop-rotate,instcombine,indvars,loop-unroll,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -verify-dom-info -verify-loop-info > %t
; RUN: grep "store volatile" %t | count 3
; RUN: not grep "br label" %t
; 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
define void @test(ptr %ptr) {
; CHECK-LABEL: @test(
-; RUN: opt -jump-threading -S %s -o - | FileCheck %s
+; RUN: opt -passes=jump-threading -S %s -o - | FileCheck %s
define i32 @f(ptr %a, i64 %i) {
entry:
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
; rdar://7620633
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"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
declare void @f()
declare void @g()
-; RUN: opt < %s -jump-threading -S | FileCheck %s
+; RUN: opt < %s -passes=jump-threading -S | FileCheck %s
; Test whether two consecutive switches with identical structures assign the
; proper value to the proper variable. This is really testing
; Instruction::isIdenticalToWhenDefined, as previously that function was
-; RUN: opt -S -jump-threading %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading %s | FileCheck %s
; Value of predicate known on all inputs (trivial case)
; Note: InstCombine/EarlyCSE would also get this case
-; RUN: opt -S -jump-threading < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
; CHECK-LABEL: @f(
; CHECK-LABEL: entry
-; RUN: opt -S -jump-threading < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
; CHECK-LABEL: @f(
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.11.0"
-; RUN: opt < %s -jump-threading -S | FileCheck %s
+; RUN: opt < %s -passes=jump-threading -S | FileCheck %s
; Skip simplifying unconditional branches from empty blocks in simplifyCFG,
; when it can destroy canonical loop structure.
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -correlated-propagation %s -S | FileCheck %s
+; RUN: opt -S -passes=jump-threading,correlated-propagation %s | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
@global = external global ptr, align 8
define i32 @foo(i32 %arg) {
-; RUN: opt -S < %s -jump-threading | FileCheck %s
+; RUN: opt -S < %s -passes=jump-threading | FileCheck %s
; PR40992: Do not incorrectly fold %bb5 into an unconditional br to %bb7.
; Also verify we correctly thread %bb1 -> %bb7 when %c is false.
; 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
define i1 @func(i1 %arg, i32 %arg1, i1 %arg2) {
; CHECK-LABEL: @func(
-; RUN: opt -jump-threading -S < %s
+; RUN: opt -passes=jump-threading -S < %s
define void @func(i8 zeroext %p_44) nounwind {
entry:
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
@x = global i32 0
@y = global i32 0
; 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
declare void @bar(...)
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
define dso_local i32 @_Z3fooi(i32 %a) !dbg !7 {
entry:
-; RUN: opt -S < %s -jump-threading | FileCheck %s
+; RUN: opt -S < %s -passes=jump-threading | FileCheck %s
; CHECK-LABEL: @foo
; CHECK: bb6:
; CHECK-NEXT: ret void
; PR45220
-; RUN: opt -S -jump-threading < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
declare i1 @NOP()
; 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
declare void @foo()
declare void @bar()
-; RUN: opt -S -jump-threading < %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
; Check that based solely on static profile estimation we don't update the
; branch-weight metadata. Even if the function has an entry frequency, a
-; RUN: opt -S -jump-threading %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading %s | FileCheck %s
; When simplify a branch based on LVI predicates, we should replace the
; comparison itself with a constant (when possible) in case it's otherwise used.
; 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
; RUN: opt < %s -aa-pipeline=basic-aa -passes=jump-threading -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"
-; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
+; RUN: opt -debug-only=branch-prob -passes=jump-threading -S %s 2>&1 | FileCheck %s
; REQUIRES: asserts
; Make sure that we set the branch probability for the newly created
-; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
+; RUN: opt -debug-only=branch-prob -passes=jump-threading -S %s 2>&1 | FileCheck %s
; REQUIRES: asserts
; Make sure that we clear edge probabilities for bb.cond as we fold
-; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
+; RUN: opt -debug-only=branch-prob -passes=jump-threading -S %s 2>&1 | FileCheck %s
; REQUIRES: asserts
; Make sure that we set edge probabilities for bb2 as we
-; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
+; RUN: opt -debug-only=branch-prob -passes=jump-threading -S %s 2>&1 | FileCheck %s
; REQUIRES: asserts
; Make sure that we clear edge probabilities for bb1 as we fold
-; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
+; RUN: opt -debug-only=branch-prob -passes=jump-threading -S %s 2>&1 | FileCheck %s
; REQUIRES: asserts
; Make sure that we clear edge probabilities for bb1 as we fold
-; RUN: opt -debug-only=branch-prob -jump-threading -S %s 2>&1 | FileCheck %s
+; RUN: opt -debug-only=branch-prob -passes=jump-threading -S %s 2>&1 | FileCheck %s
; REQUIRES: asserts
; Make sure that we clear edge probabilities for bb1 as we fold
-; RUN: opt < %s -jump-threading -S -verify | FileCheck %s
+; RUN: opt -S -passes=jump-threading,verify < %s | FileCheck %s
target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
target triple = "nvptx64-nvidia-cuda"
-; RUN: opt < %s -jump-threading -S -verify | FileCheck %s
+; RUN: opt -S -passes=jump-threading,verify < %s | FileCheck %s
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.16.27026"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -jump-threading -jump-threading-threshold=3 -S -verify | FileCheck %s
+; RUN: opt -S -passes=jump-threading,verify -jump-threading-threshold=3 < %s | FileCheck %s
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -jump-threading -S -verify | FileCheck %s
+; RUN: opt -S -passes=jump-threading,verify < %s | FileCheck %s
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
declare i32 @f1()
declare i32 @f2()
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
define void @test() {
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
define void @test() {
bb:
-; RUN: opt -jump-threading -S < %s | FileCheck %s
+; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
; Check that all zero branch weights do not cause a crash.
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -jump-threading -S < %s | FileCheck %s
; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
; Check the unreachable loop won't cause infinite loop
-; RUN: opt -S -jump-threading %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading %s | FileCheck %s
; RUN: opt -S -passes=jump-threading %s | FileCheck %s
; Test if edge weights are properly updated after jump threading.