; this is in fact NOT the case, so the return should still be alive in the code
; after sccp and CFG simplification have been performed.
;
-; RUN: opt < %s -sccp -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | \
+; RUN: opt < %s -passes=sccp,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | \
; RUN: grep ret
define void @old_main() {
-; RUN: opt < %s -sccp -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | \
+; RUN: opt < %s -passes=sccp,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | \
; RUN: not grep then:
define void @cprop_test11(ptr %data.1) {
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -sccp -loop-deletion -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
+; RUN: opt < %s -passes=sccp,loop-deletion,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
declare double @sqrt(double) readnone nounwind willreturn
%empty = type {}
; IPSCCP can simplify, so we can test the case where IPSCCP makes changes.
; RUN: opt -disable-verify -debug-pass-manager \
-; RUN: -passes='function(require<domtree>,require<postdomtree>),ipsccp,function(require<domtree>,require<postdomtree>)' -S %s 2>&1 \
+; RUN: -passes='function(require<domtree>,require<postdomtree>),ipsccp,function(require<domtree>,require<postdomtree>)' -S %s 2>&1 \
; RUN: | FileCheck -check-prefixes='IR,NEW-PM' %s
; RUN: opt -passes='function(require<postdomtree>),ipsccp,function(verify<domtree>)' -S %s | FileCheck -check-prefixes='IR' %s
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -ipsccp < %s | FileCheck %s
+; RUN: opt -S -passes=ipsccp < %s | FileCheck %s
; SCCP should never remove landingpads.
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -ipsccp -opaque-pointers < %s | FileCheck %s
+; RUN: opt -S -passes=ipsccp -opaque-pointers < %s | FileCheck %s
@g1 = internal global i32 1
@g2 = internal global i32 1
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -ipsccp -deadargelim -S | FileCheck %s
+; RUN: opt < %s -passes=ipsccp,deadargelim -S | FileCheck %s
; CHECK-NOT: %X
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -ipsccp -instcombine -S | FileCheck %s
+; RUN: opt < %s -passes=ipsccp,instcombine -S | FileCheck %s
define internal i32 @foo(i1 %C) {
; CHECK-LABEL: @foo(
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -sccp < %s | FileCheck %s
+; RUN: opt -S -passes=sccp < %s | FileCheck %s
declare { i8, i1 } @llvm.uadd.with.overflow.i8(i8, i8)
declare { i8, i1 } @llvm.usub.with.overflow.i8(i8, i8)