Use opt -passes=<name> instead of opt -name
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 7 Nov 2022 09:46:57 +0000 (10:46 +0100)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Tue, 8 Nov 2022 11:15:42 +0000 (12:15 +0100)
Updated the RUN line in several test cases to use the new PM syntax
  opt -passes=<pipeline>
instead of the deprecated syntax
  opt -pass1 -pass2

59 files changed:
llvm/docs/Bugpoint.rst
llvm/test/CodeGen/X86/mmx-bitcast-fold.ll
llvm/test/DebugInfo/Generic/dbg-value-lower-linenos.ll
llvm/test/DebugInfo/Generic/mem2reg-promote-alloca-1.ll
llvm/test/DebugInfo/Generic/mem2reg-promote-alloca-2.ll
llvm/test/DebugInfo/Generic/mem2reg-promote-alloca-3.ll
llvm/test/DebugInfo/Generic/pr40628.ll
llvm/test/DebugInfo/X86/mem2reg_fp80.ll
llvm/test/DebugInfo/salvage-cast-debug-info.ll
llvm/test/DebugInfo/salvage-overflow.ll
llvm/test/Feature/OperandBundles/special-state.ll
llvm/test/Other/debugcounter-earlycse.ll
llvm/test/Other/invariant.group.ll
llvm/test/Transforms/CanonicalizeFreezeInLoops/phis.ll
llvm/test/Transforms/EarlyCSE/AMDGPU/intrinsics.ll
llvm/test/Transforms/EarlyCSE/DirectX/create_handle.ll
llvm/test/Transforms/EarlyCSE/atan.ll
llvm/test/Transforms/EarlyCSE/atomics.ll
llvm/test/Transforms/EarlyCSE/basic.ll
llvm/test/Transforms/EarlyCSE/commute.ll
llvm/test/Transforms/EarlyCSE/conditional.ll
llvm/test/Transforms/EarlyCSE/const-speculation.ll
llvm/test/Transforms/EarlyCSE/debug-info-undef.ll
llvm/test/Transforms/EarlyCSE/debuginfo-dce.ll
llvm/test/Transforms/EarlyCSE/defaultfp-strictfp.ll
llvm/test/Transforms/EarlyCSE/ebstrict-strictfp.ll
llvm/test/Transforms/EarlyCSE/edge.ll
llvm/test/Transforms/EarlyCSE/fence.ll
llvm/test/Transforms/EarlyCSE/flags.ll
llvm/test/Transforms/EarlyCSE/floatingpoint.ll
llvm/test/Transforms/EarlyCSE/gc_relocate.ll
llvm/test/Transforms/EarlyCSE/guards.ll
llvm/test/Transforms/EarlyCSE/instsimplify-dom.ll
llvm/test/Transforms/EarlyCSE/int_sideeffect.ll
llvm/test/Transforms/EarlyCSE/invariant-loads.ll
llvm/test/Transforms/EarlyCSE/invariant.start.ll
llvm/test/Transforms/EarlyCSE/masked-intrinsics-unequal-masks.ll
llvm/test/Transforms/EarlyCSE/masked-intrinsics.ll
llvm/test/Transforms/EarlyCSE/math-1.ll
llvm/test/Transforms/EarlyCSE/math-2.ll
llvm/test/Transforms/EarlyCSE/memoryssa.ll
llvm/test/Transforms/EarlyCSE/mixed-strictfp.ll
llvm/test/Transforms/EarlyCSE/noalias-scope-decl.ll
llvm/test/Transforms/EarlyCSE/nonmixed-strictfp.ll
llvm/test/Transforms/EarlyCSE/opaque-ptr.ll
llvm/test/Transforms/EarlyCSE/phi.ll
llvm/test/Transforms/EarlyCSE/readnone-mayunwind.ll
llvm/test/Transforms/EarlyCSE/round-dyn-strictfp.ll
llvm/test/Transforms/EarlyCSE/tfpropagation.ll
llvm/test/Transforms/EarlyCSE/writeonly.ll
llvm/test/Transforms/InstCombine/invariant.group.ll
llvm/test/Transforms/InstNamer/basic.ll
llvm/test/Transforms/InstSimplify/ConstProp/allones.ll
llvm/test/Transforms/InstSimplify/ConstProp/rint.ll
llvm/test/Transforms/InstSimplify/ConstProp/round.ll
llvm/test/Transforms/InstSimplify/ConstProp/trunc.ll
llvm/test/Transforms/InstSimplify/ConstProp/vscale-getelementptr.ll
llvm/test/Transforms/InstSimplify/ConstProp/vscale-shufflevector-inseltpoison.ll
llvm/test/Transforms/InstSimplify/ConstProp/vscale-shufflevector.ll

index 2dd5045..ab6bf70 100644 (file)
@@ -158,9 +158,9 @@ non-obvious ways.  Here are some hints and tips:
   repeat until a bug is found or the user kills ``bugpoint``.
 
 * ``bugpoint`` can produce IR which contains long names. Run ``opt
-  -metarenamer`` over the IR to rename everything using easy-to-read,
-  metasyntactic names. Alternatively, run ``opt -strip -instnamer`` to rename
-  everything with very short (often purely numeric) names.
+  -passes=metarenamer`` over the IR to rename everything using easy-to-read,
+  metasyntactic names. Alternatively, run ``opt -passes=strip,instnamer`` to
+  rename everything with very short (often purely numeric) names.
 
 What to do when bugpoint isn't enough
 =====================================
index 7d1987c..0fa7b24 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=x86_64-- -early-cse -earlycse-debug-hash < %s -S | FileCheck %s
+; RUN: opt -mtriple=x86_64-- -passes=early-cse -earlycse-debug-hash < %s -S | FileCheck %s
 
 ; CHECK: @foo(x86_mmx bitcast (double 0.000000e+00 to x86_mmx))
 
index 892122d..cb46b1f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -mem2reg -instcombine | FileCheck %s
+; RUN: opt < %s -S -passes=mem2reg,instcombine | FileCheck %s
 
 ; The '%bar' alloca will be promoted to an SSA register by mem2reg: test that
 ; zero line number are assigned to the dbg.value intrinsics that are inserted
index 37e53f2..506ca04 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mem2reg %s -S -o - | FileCheck %s
+; RUN: opt -passes=mem2reg %s -S -o - | FileCheck %s
 
 ;; Check that mem2reg removes dbg.value(%param.addr, DIExpression(DW_OP_deref...))
 ;; when promoting the alloca %param.addr.
index 4c14a42..d8d41cb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mem2reg %s -S -o - | FileCheck %s
+; RUN: opt -passes=mem2reg %s -S -o - | FileCheck %s
 
 ;; Check that mem2reg removes dbg.value(%local, DIExpression(DW_OP_deref...))
 ;; that instcombine LowerDbgDeclare inserted before the call to 'esc' when
index 2d111c3..d814000 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mem2reg %s -S -o - | FileCheck %s
+; RUN: opt -passes=mem2reg %s -S -o - | FileCheck %s
 
 ;; Check that mem2reg removes dbg.value(%local, DIExpression(DW_OP_deref...))
 ;; that instcombine LowerDbgDeclare inserted before the call to 'esc' when
index af994de..90ebb86 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -earlycse-debug-hash -S %s -o - | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S %s -o - | FileCheck %s
 
 ; PR40628: The first load below is determined to be redundant by EarlyCSE.
 ; During salvaging, the corresponding dbg.value could have a DW_OP_deref used
index d557003..b227a37 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -mem2reg -S | FileCheck %s
+; RUN: opt < %s -passes=mem2reg -S | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
index c4f2111..c196bcd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -debugify -early-cse -earlycse-debug-hash -S | FileCheck %s
+; RUN: opt %s -passes=debugify,early-cse -earlycse-debug-hash -S | FileCheck %s
 define i32 @foo(i64 %nose, i32 %more) {
 ; CHECK-LABEL: @foo(
 ; CHECK: call void @llvm.dbg.value(metadata i64 %nose, metadata [[V1:![0-9]+]], metadata !DIExpression(DW_OP_LLVM_convert, 64, DW_ATE_unsigned, DW_OP_LLVM_convert, 32, DW_ATE_unsigned
index abb9e4f..d0333dc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sroa -early-cse -S | FileCheck %s
+; RUN: opt %s -passes=sroa,early-cse -S | FileCheck %s
 ; CHECK: DIExpression(DW_OP_constu, 9223372036854775808, DW_OP_minus, DW_OP_stack_value)
 ; Created from the following C input (and then delta-reduced the IR):
 ;
index f51beca..1b10f6a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
 
 ; This test isn't directly related to EarlyCSE or varargs.  It is just
 ; using these as a vehicle for testing the correctness of
index daaf7c9..b3e74e0 100644 (file)
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: opt -S -debug-counter=early-cse-skip=1,early-cse-count=1 -early-cse -earlycse-debug-hash < %s 2>&1 | FileCheck %s
+; RUN: opt -S -debug-counter=early-cse-skip=1,early-cse-count=1 -passes=early-cse -earlycse-debug-hash < %s 2>&1 | FileCheck %s
 ;; Test that, with debug counters on, we only optimize the second CSE opportunity.
 define i32 @test(i32 %a, i32 %b) {
 ; CHECK-LABEL: @test(
index 94b1bc7..08edb4b 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
-; RUN: opt -S -gvn < %s | FileCheck %s
-; RUN: opt -S -newgvn < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
+; RUN: opt -S -passes=gvn < %s | FileCheck %s
+; RUN: opt -S -passes=newgvn < %s | FileCheck %s
 
 ; These tests checks if passes with CSE functionality can do CSE on
 ; launder.invariant.group, that is prohibited if there is a memory clobber
index 333f754..3d0b031 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -canon-freeze -S | FileCheck %s
+; RUN: opt < %s -passes=canon-freeze -S | FileCheck %s
 ; A set of tests that have several phi nodes
 declare void @call(i32)
 declare i32 @call2()
index fbd9e77..08a1385 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -mtriple=amdgcn-- -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -mtriple=amdgcn-- -passes=early-cse -earlycse-debug-hash | FileCheck %s
 
 ; CHECK-LABEL: @no_cse
 ; CHECK: call i32 @llvm.amdgcn.s.buffer.load.i32(<4 x i32> %in, i32 0, i32 0)
index c580721..8c4d1f4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -early-cse -S | FileCheck %s
+; RUN: opt %s -passes=early-cse -S | FileCheck %s
 
 define void @fn() {
 entry:
index e665e0c..2b7206c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -S < %s | FileCheck %s
 
 ; We allow either sign to provide flexibility for mathlib
 ; implementations. The POSIX standard is not strict here.
index 73bcab6..da96961 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 
 define i32 @test12(i1 %B, ptr %P1, ptr %P2) {
index 136bc10..0a74374 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 ; RUN: opt < %s -S -passes=early-cse | FileCheck %s
 
index 1b0512c..6aaaf99 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 
 define void @test1(float %A, float %B, ptr %PA, ptr %PB) {
index 70bd8c2..562aad7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 ; RUN: opt -passes='early-cse<memssa>' -S < %s | FileCheck %s
 
 ; Can we CSE a known condition to a constant?
index 53138f5..e98137d 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -early-cse -earlycse-debug-hash -S %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S %s | FileCheck %s
 
 %mystruct = type { i32 }
 
index 0665f73..921fff1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S %s -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt -S %s -passes=early-cse -earlycse-debug-hash | FileCheck %s
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
 
index 7bc5c06..cd2abf5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -earlycse-debug-hash -S %s -o - | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S %s -o - | FileCheck %s
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 
 ; Function Attrs: nounwind uwtable
index 16853e9..bdfad0d 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 
 ; Test use of constrained floating point intrinsics in the default
index 1430f5e..fafc7cc 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 
 ; Test use of constrained floating point intrinsics with consistent
index f9a932a..3011061 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 ; RUN: opt -passes='early-cse<memssa>' -S < %s | FileCheck %s
 ; Same as GVN/edge.ll, but updated to reflect EarlyCSE's less powerful
 ; implementation.  EarlyCSE currently doesn't exploit equality comparisons
index 3c5bd68..1dbf666 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 ; NOTE: This file is testing the current implementation.  Some of
 ; the transforms used as negative tests below would be legal, but 
index 8b408c1..82fba14 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 ; RUN: opt -passes='early-cse<memssa>' -S < %s | FileCheck %s
 
 declare void @use(i1)
index d7453b4..9dc5940 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 
 ; Ensure we don't simplify away additions vectors of +0.0's (same as scalars).
index beeebe5..d8d21f3 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 
 declare void @func()
 declare i32 @"personality_function"()
index 9abdb74..e837b77 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s --check-prefixes=CHECK,NO_ASSUME
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s --check-prefixes=CHECK,NO_ASSUME
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s --check-prefixes=CHECK,NO_ASSUME
 ; RUN: opt < %s -S -passes='early-cse<memssa>' --enable-knowledge-retention | FileCheck %s --check-prefixes=CHECK,USE_ASSUME
 
index eaaecf4..1d1b16f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 ; RUN: opt -passes='early-cse<memssa>' -S < %s | FileCheck %s
 ; PR12231
 
index c411756..d59836c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S < %s -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt -S < %s -passes=early-cse -earlycse-debug-hash | FileCheck %s
 
 declare void @llvm.sideeffect()
 
index 09a2446..8845466 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s --check-prefixes=CHECK,NO_ASSUME
+; RUN: opt -S -passes='early-cse' -earlycse-debug-hash < %s | FileCheck %s --check-prefixes=CHECK,NO_ASSUME
 ; RUN: opt -S -passes='early-cse<memssa>' < %s | FileCheck %s --check-prefixes=CHECK,NO_ASSUME
 ; RUN: opt -S -passes='early-cse<memssa>' --enable-knowledge-retention < %s | FileCheck %s --check-prefixes=CHECK,USE_ASSUME
 
index dcf80f1..9c42256 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s --check-prefixes=CHECK,NO_ASSUME
-; RUN: opt < %s -S -early-cse --enable-knowledge-retention | FileCheck %s --check-prefixes=CHECK,USE_ASSUME
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s --check-prefixes=CHECK,NO_ASSUME
+; RUN: opt < %s -S -passes=early-cse --enable-knowledge-retention | FileCheck %s --check-prefixes=CHECK,USE_ASSUME
 ; RUN: opt < %s -S -passes=early-cse | FileCheck %s --check-prefixes=CHECK,NO_ASSUME
 
 declare ptr @llvm.invariant.start.p0(i64, ptr nocapture) nounwind readonly
index 9357f99..9739772 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -early-cse < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse < %s | FileCheck %s
 
 ; Unequal mask check.
 
index aa3167a..0fcb4fd 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -early-cse < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse < %s | FileCheck %s
 
 define <128 x i8> @f0(ptr %a0, <128 x i8> %a1, <128 x i8> %a2) {
 ; CHECK-LABEL: @f0(
index ed24525..d972078 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -early-cse -earlycse-debug-hash -S -o - %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S -o - %s | FileCheck %s
 
 declare double @acos(double) #0
 define double @f_acos() {
index fb6d979..d9f7c61 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -early-cse -earlycse-debug-hash -S -o - %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S -o - %s | FileCheck %s
 
 declare double @atan2(double, double) #0
 define double @f_atan2() {
index 2d7266f..942b6f8 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s --check-prefix=CHECK-NOMEMSSA
+; RUN: opt < %s -S -passes='early-cse' -earlycse-debug-hash | FileCheck %s --check-prefix=CHECK-NOMEMSSA
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse' | FileCheck %s --check-prefix=CHECK-NOMEMSSA
 ; RUN: opt < %s -S -aa-pipeline=basic-aa -passes='early-cse<memssa>' | FileCheck %s
index 2196427..f3b857a 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 
 ; Test use of constrained floating point intrinsics mixing the default
index 2b51ba0..6b20bd6 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S < %s -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt -S < %s -passes=early-cse -earlycse-debug-hash | FileCheck %s
 
 ; Store-to-load forwarding across a @llvm.experimental.noalias.scope.decl.
 
index 1a3dfc0..8772f20 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 
 ; Test use of constrained floating point intrinsics with consistent
index 1c995ab..a7b9f3e 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -early-cse -opaque-pointers < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -opaque-pointers < %s | FileCheck %s
 
 define i32 @different_types_load(ptr %p) {
 ; CHECK-LABEL: @different_types_load(
index e2cb517..cf5aa4b 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 ; RUN: opt -passes='early-cse<memssa>' -S < %s | FileCheck %s
 
 ; Most basic case, fully identical PHI nodes
index 9b2ae3b..e4d31f3 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
 
 declare void @readnone_may_unwind() readnone
 
index 0c78f22..c33e022 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 
 ; Test use of constrained floating point intrinsics with dynamic
index b26b8c9..d07c962 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -early-cse -earlycse-debug-hash | FileCheck %s
+; RUN: opt < %s -S -passes=early-cse -earlycse-debug-hash | FileCheck %s
 ; RUN: opt < %s -S -passes='early-cse<memssa>' | FileCheck %s
 
 define i64 @branching_int(i32 %a) {
index af20ecf..0bfffa3 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
 
 @var = global i32 undef
 declare void @foo() nounwind
index 098f666..521be47 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -instcombine -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=instcombine,early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 
 define ptr @simplifyNullLaunder() {
 ; CHECK-LABEL: @simplifyNullLaunder(
index 4fe0369..3d35dd8 100644 (file)
@@ -1,4 +1,3 @@
-; RUN: opt -S -instnamer < %s | FileCheck %s
 ; RUN: opt -S -passes=instnamer < %s | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
index 9d170de..1b5878c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -earlycse-debug-hash -S -o - %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S -o - %s | FileCheck %s
 target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64-ni:2"
 target triple = "armv7-unknown-linux-gnueabi"
 
index 3b7b0ea..f6b3dd8 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
 
 declare float @nearbyintf(float) #0
 declare float @llvm.nearbyint.f32(float)
index e24750e..6e07a43 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
 
 declare float @roundf(float) #0
 declare float @llvm.round.f32(float)
index b7ba65f..1920a85 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
 
 declare float @truncf(float) #0
 declare float @llvm.trunc.f32(float)
index 6d141ac..842d649 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64"
index 48ec29c..be93d6f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64"
index df90116..a2f50a6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -early-cse -earlycse-debug-hash -S < %s | FileCheck %s
+; RUN: opt -passes=early-cse -earlycse-debug-hash -S < %s | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64"