JumpThreading: Convert tests to -passes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
; 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() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -jump-threading
|
||||
; RUN: opt -S -passes=jump-threading < %s
|
||||
; PR9446
|
||||
; Just check that it doesn't crash
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt -jump-threading < %s
|
||||
; RUN: opt -passes=jump-threading < %s
|
||||
; <rdar://problem/9284786>
|
||||
|
||||
%0 = type <{ i64, i16, i64, i8, i8 }>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -jump-threading
|
||||
; RUN: opt -S -passes=jump-threading < %s
|
||||
; PR 13405
|
||||
; Just check that it doesn't crash / assert
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
; 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) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt -jump-threading -S < %s | FileCheck %s
|
||||
; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
|
||||
|
||||
declare i32 @f1()
|
||||
declare i32 @f2()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -jump-threading -S | not grep phi
|
||||
; RUN: opt < %s -passes=jump-threading -S | not grep phi
|
||||
|
||||
declare i8 @mcguffin()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; 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 {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt -jump-threading -S %s | FileCheck %s
|
||||
; RUN: opt -passes=jump-threading -S %s | FileCheck %s
|
||||
|
||||
; Check that we thread arg2neg -> checkpos -> end.
|
||||
;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt -jump-threading < %s -S -o - | FileCheck %s
|
||||
; RUN: opt -passes=jump-threading < %s -S -o - | FileCheck %s
|
||||
|
||||
; Reproducer for PR47297.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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 }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -jump-threading -disable-output
|
||||
; RUN: opt < %s -passes=jump-threading -disable-output
|
||||
|
||||
%struct.aaa = type { i8 }
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
; 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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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, ...)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
; Check that the heuristic for avoiding accidental introduction of irreducible
|
||||
; loops doesn't also prevent us from threading simple constructs where this
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt -jump-threading -S < %s | FileCheck %s
|
||||
; RUN: opt -passes=jump-threading -S < %s | FileCheck %s
|
||||
|
||||
declare void @side_effect(i32)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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] [
|
||||
|
||||
@@ -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
|
||||
|
||||
define i8 @test(i32 %a, i32 %length) {
|
||||
; CHECK-LABEL: @test(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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 }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
define void @test(ptr %ptr) {
|
||||
; CHECK-LABEL: @test(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt -S -jump-threading < %s | FileCheck %s
|
||||
; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
|
||||
|
||||
; CHECK-LABEL: @f(
|
||||
; CHECK-LABEL: entry
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt -S -jump-threading < %s | FileCheck %s
|
||||
; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
|
||||
|
||||
|
||||
; CHECK-LABEL: @f(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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.
|
||||
|
||||
@@ -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
|
||||
|
||||
define i1 @func(i1 %arg, i32 %arg1, i1 %arg2) {
|
||||
; CHECK-LABEL: @func(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt -jump-threading -S < %s
|
||||
; RUN: opt -passes=jump-threading -S < %s
|
||||
|
||||
define void @func(i8 zeroext %p_44) nounwind {
|
||||
entry:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
declare void @bar(...)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; PR45220
|
||||
; RUN: opt -S -jump-threading < %s | FileCheck %s
|
||||
; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
|
||||
|
||||
declare i1 @NOP()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
declare void @foo()
|
||||
declare void @bar()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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.
|
||||
|
||||
|
||||
@@ -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
|
||||
; 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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; 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()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
; 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; 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.
|
||||
|
||||
Reference in New Issue
Block a user