-; RUN: opt < %s -loop-deletion -S | grep switch
+; RUN: opt < %s -passes=loop-deletion -S | grep switch
; PR 1564
-
+
define fastcc void @out() {
start:
br label %loop
-; RUN: opt < %s -inline -instcombine -jump-threading -licm -simple-loop-unswitch -instcombine -indvars -loop-deletion -gvn -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -verify -disable-output
+; RUN: opt < %s -passes='cgscc(inline),function(instcombine,jump-threading,loop-mssa(licm),simple-loop-unswitch,instcombine,indvars,loop-deletion,gvn,simplifycfg),verify' -simplifycfg-require-and-preserve-domtree=1 -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-f80:128:128"
target triple = "i386-apple-darwin9"
-; RUN: opt -loop-deletion -disable-output < %s
+; RUN: opt -passes=loop-deletion -disable-output < %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"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -loop-deletion -S < %s | FileCheck %s
+; RUN: opt -passes=loop-deletion -S < %s | FileCheck %s
@a = global i1 false, align 4
-; RUN: opt -loop-deletion %s -o /dev/null --pass-remarks-output=%t --pass-remarks-filter=loop-delete
+; RUN: opt -passes=loop-deletion %s -o /dev/null --pass-remarks-output=%t --pass-remarks-filter=loop-delete
; RUN: cat %t | FileCheck %s
; Check that we use the right debug location: the loop header.
; Make sure we don't crash when writing bitcode.
-; RUN: opt < %s -loop-deletion -o /dev/null
+; RUN: opt < %s -passes=loop-deletion -o /dev/null
define void @f() {
br label %bb1
; This is the test case taken from Appel's book that illustrates a hard case
; that SCCP gets right, and when followed by ADCE, is completely eliminated
;
-; RUN: opt < %s -sccp -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -indvars -loop-deletion -dce -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | not grep br
+; RUN: opt < %s -passes=sccp,simplifycfg,indvars,loop-deletion,dce,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -simplifycfg-require-and-preserve-domtree=1 -S | not grep br
define i32 @"test function"(i32 %i0, i32 %j0) {
BB1:
-; RUN: opt %s -loop-deletion -S | FileCheck %s
+; RUN: opt %s -passes=loop-deletion -S | FileCheck %s
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.14.0"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -loop-deletion -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s
; RUN: opt < %s -passes='loop(loop-deletion)' -S | FileCheck %s
; The idea is that we know that %is.positive is true on the 1st iteration,
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -loop-deletion -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s
; RUN: opt < %s -passes='loop(loop-deletion)' -S | FileCheck %s
; Make sure we do not get the miscompile on this test with irreducible CFG.
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -loop-deletion -verify-dom-info -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -verify-dom-info -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"
-; RUN: opt < %s -loop-deletion -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s
; RUN: opt < %s -passes='loop(loop-deletion)' -S | FileCheck %s
; ScalarEvolution can prove the loop iteration is finite, even though
; critical components remain after those passes and are visible to the loop
; deletion pass.
;
-; RUN: opt < %s -loop-simplify -lcssa -S | FileCheck %s --check-prefixes=CHECK,BEFORE
-; RUN: opt < %s -loop-deletion -S | FileCheck %s --check-prefixes=CHECK,AFTER
+; RUN: opt < %s -passes=loop-simplify,lcssa -S | FileCheck %s --check-prefixes=CHECK,BEFORE
+; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s --check-prefixes=CHECK,AFTER
;
; RUN: opt < %s -passes=no-op-loop -S | FileCheck %s --check-prefixes=CHECK,BEFORE
; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s --check-prefixes=CHECK,AFTER
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes
-; RUN: opt < %s -loop-deletion -verify-dom-info -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -verify-dom-info -S | FileCheck %s
;; Original C Code:
;; void unknown_tripcount_mustprogress_attr_mustprogress_loopmd(int a, int b) {
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes
-; RUN: opt < %s -loop-deletion -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s
define void @f() #0 {
; CHECK: Function Attrs: mustprogress
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -loop-deletion -verify-dom-info -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -verify-dom-info -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"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -loop-deletion < %s | FileCheck %s
+; RUN: opt -S -passes=loop-deletion < %s | FileCheck %s
define void @test() {
; CHECK-LABEL: @test(
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -indvars -loop-deletion -simplifycfg -simplifycfg-require-and-preserve-domtree=1 | FileCheck %s
+; RUN: opt < %s -S -passes='loop(indvars,loop-deletion),simplifycfg' -simplifycfg-require-and-preserve-domtree=1 | FileCheck %s
; PR5794
; Indvars and loop deletion should be able to eliminate all looping
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -loop-deletion -verify-loop-info -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -verify-loop-info -S | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -loop-deletion -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -loop-deletion -verify-dom-info --pass-remarks-output=%t --pass-remarks-filter=loop-delete -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -verify-dom-info --pass-remarks-output=%t --pass-remarks-filter=loop-delete -S | FileCheck %s
; RUN: cat %t | FileCheck %s --check-prefix=REMARKS
; Checking that we can delete loops that are never executed.
-; RUN: opt < %s -loop-deletion -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s
; Checking that possible users of instruction from the loop in
; unreachable blocks are handled.
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -loop-deletion -S | FileCheck %s
+; RUN: opt < %s -passes=loop-deletion -S | FileCheck %s
@G = external global i32