[llvm] 33b939c - [NFC] Port all ConstantHoisting tests to `-passes=` syntax

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 15:39:20 PST 2022


Author: Roman Lebedev
Date: 2022-12-08T02:38:41+03:00
New Revision: 33b939c3c8c95e8db68bbf52459792a8c771d51e

URL: https://github.com/llvm/llvm-project/commit/33b939c3c8c95e8db68bbf52459792a8c771d51e
DIFF: https://github.com/llvm/llvm-project/commit/33b939c3c8c95e8db68bbf52459792a8c771d51e.diff

LOG: [NFC] Port all ConstantHoisting tests to `-passes=` syntax

Added: 
    

Modified: 
    llvm/test/Transforms/ConstantHoisting/AArch64/const-addr.ll
    llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-gep.ll
    llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-intrinsics.ll
    llvm/test/Transforms/ConstantHoisting/AArch64/consthoist-unreachable.ll
    llvm/test/Transforms/ConstantHoisting/AArch64/large-immediate.ll
    llvm/test/Transforms/ConstantHoisting/ARM/bad-cases.ll
    llvm/test/Transforms/ConstantHoisting/ARM/const-addr-no-neg-offset.ll
    llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep-overindexing.ll
    llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep.ll
    llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll
    llvm/test/Transforms/ConstantHoisting/ARM/insertvalue.ll
    llvm/test/Transforms/ConstantHoisting/ARM/is-legal-addressing-imm.ll
    llvm/test/Transforms/ConstantHoisting/ARM/same-offset-multi-types.ll
    llvm/test/Transforms/ConstantHoisting/PowerPC/const-base-addr.ll
    llvm/test/Transforms/ConstantHoisting/PowerPC/masks.ll
    llvm/test/Transforms/ConstantHoisting/RISCV/immediates.ll
    llvm/test/Transforms/ConstantHoisting/X86/bad-cases.ll
    llvm/test/Transforms/ConstantHoisting/X86/cast-inst.ll
    llvm/test/Transforms/ConstantHoisting/X86/const-base-addr.ll
    llvm/test/Transforms/ConstantHoisting/X86/dbg-dominatingblock.ll
    llvm/test/Transforms/ConstantHoisting/X86/dbg-samebasicblock.ll
    llvm/test/Transforms/ConstantHoisting/X86/delete-dead-cast-inst.ll
    llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll
    llvm/test/Transforms/ConstantHoisting/X86/ehphi.ll
    llvm/test/Transforms/ConstantHoisting/X86/large-immediate.ll
    llvm/test/Transforms/ConstantHoisting/X86/phi.ll
    llvm/test/Transforms/ConstantHoisting/X86/pr43903-not-all-uses-rebased.ll
    llvm/test/Transforms/ConstantHoisting/X86/stackmap.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/ConstantHoisting/AArch64/const-addr.ll b/llvm/test/Transforms/ConstantHoisting/AArch64/const-addr.ll
index 4c36d20dc6b0e..969fd8d18d9af 100644
--- a/llvm/test/Transforms/ConstantHoisting/AArch64/const-addr.ll
+++ b/llvm/test/Transforms/ConstantHoisting/AArch64/const-addr.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=arm64-darwin-unknown -S -consthoist < %s | FileCheck %s
+; RUN: opt -mtriple=arm64-darwin-unknown -S -passes=consthoist < %s | FileCheck %s
 
 %T = type { i32, i32, i32, i32 }
 

diff  --git a/llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-gep.ll b/llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-gep.ll
index cc761ad9bffa8..78de5700244a7 100644
--- a/llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-gep.ll
+++ b/llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-gep.ll
@@ -1,4 +1,4 @@
-; RUN: opt -consthoist -consthoist-gep -S -o - %s | FileCheck %s
+; RUN: opt -passes=consthoist -consthoist-gep -S -o - %s | FileCheck %s
 
 target triple = "aarch64-none--musleabi"
 

diff  --git a/llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-intrinsics.ll b/llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-intrinsics.ll
index e1333ace27d77..c63e019973aa4 100644
--- a/llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-intrinsics.ll
+++ b/llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-intrinsics.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -mtriple=arm64-darwin-unknown -S -consthoist < %s | FileCheck %s
+; RUN: opt -mtriple=arm64-darwin-unknown -S -passes=consthoist < %s | FileCheck %s
 
 ; Make sure we hoist constants out of intrinsics.
 

diff  --git a/llvm/test/Transforms/ConstantHoisting/AArch64/consthoist-unreachable.ll b/llvm/test/Transforms/ConstantHoisting/AArch64/consthoist-unreachable.ll
index 6f8d00f664e85..c7205d67b0c8b 100644
--- a/llvm/test/Transforms/ConstantHoisting/AArch64/consthoist-unreachable.ll
+++ b/llvm/test/Transforms/ConstantHoisting/AArch64/consthoist-unreachable.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -mtriple aarch64-- -consthoist -S | FileCheck %s
+; RUN: opt < %s -mtriple aarch64-- -passes=consthoist -S | FileCheck %s
 
 ; This used to trigger an assertion failure:
 ;

diff  --git a/llvm/test/Transforms/ConstantHoisting/AArch64/large-immediate.ll b/llvm/test/Transforms/ConstantHoisting/AArch64/large-immediate.ll
index 575be791d9b1e..015f52157b9e7 100644
--- a/llvm/test/Transforms/ConstantHoisting/AArch64/large-immediate.ll
+++ b/llvm/test/Transforms/ConstantHoisting/AArch64/large-immediate.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=arm64-darwin-unknown -S -consthoist < %s | FileCheck %s
+; RUN: opt -mtriple=arm64-darwin-unknown -S -passes=consthoist < %s | FileCheck %s
 
 define i128 @test1(i128 %a) nounwind {
 ; CHECK-LABEL: test1

diff  --git a/llvm/test/Transforms/ConstantHoisting/ARM/bad-cases.ll b/llvm/test/Transforms/ConstantHoisting/ARM/bad-cases.ll
index 315e69998c627..e53e8678009e2 100644
--- a/llvm/test/Transforms/ConstantHoisting/ARM/bad-cases.ll
+++ b/llvm/test/Transforms/ConstantHoisting/ARM/bad-cases.ll
@@ -1,4 +1,4 @@
-; RUN: opt -consthoist -S < %s | FileCheck %s
+; RUN: opt -passes=consthoist -S < %s | FileCheck %s
 target triple = "thumbv6m-none-eabi"
 
 ; Allocas in the entry block get handled (for free) by

diff  --git a/llvm/test/Transforms/ConstantHoisting/ARM/const-addr-no-neg-offset.ll b/llvm/test/Transforms/ConstantHoisting/ARM/const-addr-no-neg-offset.ll
index e7a3889d42c6c..69b513ebd94a9 100644
--- a/llvm/test/Transforms/ConstantHoisting/ARM/const-addr-no-neg-offset.ll
+++ b/llvm/test/Transforms/ConstantHoisting/ARM/const-addr-no-neg-offset.ll
@@ -1,6 +1,6 @@
-; RUN: opt -mtriple=arm-arm-none-eabi -consthoist -S < %s | FileCheck %s
+; RUN: opt -mtriple=arm-arm-none-eabi -passes=consthoist -S < %s | FileCheck %s
 ; RUN: opt -mtriple=arm-arm-none-eabi -passes='require<profile-summary>,consthoist' -pgso -S < %s | FileCheck %s -check-prefix=PGSO
-; RUN: opt -mtriple=arm-arm-none-eabi -consthoist -pgso=false -S < %s | FileCheck %s -check-prefix=NPGSO
+; RUN: opt -mtriple=arm-arm-none-eabi -passes=consthoist -pgso=false -S < %s | FileCheck %s -check-prefix=NPGSO
 
 ; There are 
diff erent candidates here for the base constant: 1073876992 and
 ; 1073876996. But we don't want to see the latter because it results in

diff  --git a/llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep-overindexing.ll b/llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep-overindexing.ll
index f2817f51b69fd..6438b333f0407 100644
--- a/llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep-overindexing.ll
+++ b/llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep-overindexing.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -consthoist -consthoist-gep -S -o - %s | FileCheck %s
+; RUN: opt -passes=consthoist -consthoist-gep -S -o - %s | FileCheck %s
 
 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
 target triple = "thumbv6m-none--musleabi"

diff  --git a/llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep.ll b/llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep.ll
index b7ae1ee122b5d..d655a705d6fc6 100644
--- a/llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep.ll
+++ b/llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep.ll
@@ -1,4 +1,4 @@
-; RUN: opt -consthoist -consthoist-gep -S -o - %s | FileCheck %s
+; RUN: opt -passes=consthoist -consthoist-gep -S -o - %s | FileCheck %s
 
 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
 target triple = "thumbv6m-none--musleabi"

diff  --git a/llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll b/llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll
index 70a01a660b626..771a6eff40862 100644
--- a/llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll
+++ b/llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll
@@ -1,4 +1,4 @@
-; RUN: opt -consthoist -S < %s | FileCheck %s
+; RUN: opt -passes=consthoist -S < %s | FileCheck %s
 target triple = "thumbv6m-none-eabi"
 
 %T = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32,

diff  --git a/llvm/test/Transforms/ConstantHoisting/ARM/insertvalue.ll b/llvm/test/Transforms/ConstantHoisting/ARM/insertvalue.ll
index 99fe7fbe22a56..70276ddeeab8b 100644
--- a/llvm/test/Transforms/ConstantHoisting/ARM/insertvalue.ll
+++ b/llvm/test/Transforms/ConstantHoisting/ARM/insertvalue.ll
@@ -1,4 +1,4 @@
-; RUN: opt -consthoist -S < %s | FileCheck %s
+; RUN: opt -passes=consthoist -S < %s | FileCheck %s
 target triple = "thumbv6m-none-eabi"
 
 %T = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32,

diff  --git a/llvm/test/Transforms/ConstantHoisting/ARM/is-legal-addressing-imm.ll b/llvm/test/Transforms/ConstantHoisting/ARM/is-legal-addressing-imm.ll
index d9482d9a25cb5..5da95deca5e37 100644
--- a/llvm/test/Transforms/ConstantHoisting/ARM/is-legal-addressing-imm.ll
+++ b/llvm/test/Transforms/ConstantHoisting/ARM/is-legal-addressing-imm.ll
@@ -1,4 +1,4 @@
-; RUN: opt -consthoist -S -o - %s | FileCheck %s
+; RUN: opt -passes=consthoist -S -o - %s | FileCheck %s
 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
 target triple = "thumbv6m-none--musleabi"
 

diff  --git a/llvm/test/Transforms/ConstantHoisting/ARM/same-offset-multi-types.ll b/llvm/test/Transforms/ConstantHoisting/ARM/same-offset-multi-types.ll
index 8102af329b7d7..f2782bc388429 100644
--- a/llvm/test/Transforms/ConstantHoisting/ARM/same-offset-multi-types.ll
+++ b/llvm/test/Transforms/ConstantHoisting/ARM/same-offset-multi-types.ll
@@ -1,4 +1,4 @@
-; RUN: opt -consthoist -consthoist-gep -S -o - %s | FileCheck %s
+; RUN: opt -passes=consthoist -consthoist-gep -S -o - %s | FileCheck %s
 
 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
 target triple = "thumbv6m-none--musleabi"

diff  --git a/llvm/test/Transforms/ConstantHoisting/PowerPC/const-base-addr.ll b/llvm/test/Transforms/ConstantHoisting/PowerPC/const-base-addr.ll
index 69b13cf9c9a4d..f61684e244e78 100644
--- a/llvm/test/Transforms/ConstantHoisting/PowerPC/const-base-addr.ll
+++ b/llvm/test/Transforms/ConstantHoisting/PowerPC/const-base-addr.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 target datalayout = "E-m:e-i64:64-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
 

diff  --git a/llvm/test/Transforms/ConstantHoisting/PowerPC/masks.ll b/llvm/test/Transforms/ConstantHoisting/PowerPC/masks.ll
index 4cc504f11bd98..6b5611b8114ed 100644
--- a/llvm/test/Transforms/ConstantHoisting/PowerPC/masks.ll
+++ b/llvm/test/Transforms/ConstantHoisting/PowerPC/masks.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 target datalayout = "E-m:e-i64:64-n32:64"
 target triple = "powerpc64-unknown-linux-gnu"
 

diff  --git a/llvm/test/Transforms/ConstantHoisting/RISCV/immediates.ll b/llvm/test/Transforms/ConstantHoisting/RISCV/immediates.ll
index fe705fc4acc17..7ee53f4cbc852 100644
--- a/llvm/test/Transforms/ConstantHoisting/RISCV/immediates.ll
+++ b/llvm/test/Transforms/ConstantHoisting/RISCV/immediates.ll
@@ -1,5 +1,5 @@
-; RUN: opt -mtriple=riscv32-unknown-elf -S -consthoist < %s | FileCheck %s
-; RUN: opt -mtriple=riscv64-unknown-elf -S -consthoist < %s | FileCheck %s
+; RUN: opt -mtriple=riscv32-unknown-elf -S -passes=consthoist < %s | FileCheck %s
+; RUN: opt -mtriple=riscv64-unknown-elf -S -passes=consthoist < %s | FileCheck %s
 
 ; Check that we don't hoist immediates with small values.
 define i64 @test1(i64 %a) nounwind {

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/bad-cases.ll b/llvm/test/Transforms/ConstantHoisting/X86/bad-cases.ll
index 8d0e9e001563b..d752ce0fdd826 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/bad-cases.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/bad-cases.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -consthoist -S < %s | FileCheck %s
+; RUN: opt -passes=consthoist -S < %s | FileCheck %s
 target triple = "x86_64--"
 
 ; We don't want to convert constant divides because the benefit from converting

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/cast-inst.ll b/llvm/test/Transforms/ConstantHoisting/X86/cast-inst.ll
index 58d7650f91fe9..72dc406dd263f 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/cast-inst.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/cast-inst.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 ; RUN: opt -S -passes='consthoist' < %s | FileCheck %s
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/const-base-addr.ll b/llvm/test/Transforms/ConstantHoisting/X86/const-base-addr.ll
index db5dfdd1538aa..53a84009a6630 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/const-base-addr.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/const-base-addr.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-apple-macosx10.9.0"

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/dbg-dominatingblock.ll b/llvm/test/Transforms/ConstantHoisting/X86/dbg-dominatingblock.ll
index 0f7c5766654af..abd6008f262ce 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/dbg-dominatingblock.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/dbg-dominatingblock.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 ; ModuleID = 'test-hoist-debug.cpp'
 source_filename = "test-hoist-debug.cpp"
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
@@ -8,7 +8,7 @@ target triple = "x86_64-unknown-linux-gnu"
 define i32 @_Z3foov() !dbg !7 {
 ; CHECK: bitcast
 ; CHECK-NOT: !dbg !11
-; CHECK: inttoptr 
+; CHECK: inttoptr
 entry:
   %a0 = inttoptr i64 4646526064 to i32*
   %v0 = load i32, i32* %a0, align 16, !dbg !11

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/dbg-samebasicblock.ll b/llvm/test/Transforms/ConstantHoisting/X86/dbg-samebasicblock.ll
index 75445666e7e39..be1db803d1c26 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/dbg-samebasicblock.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/dbg-samebasicblock.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 ; ModuleID = 'test-hoist-debug.cpp'
 source_filename = "test-hoist-debug.cpp"
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
@@ -8,7 +8,7 @@ target triple = "x86_64-unknown-linux-gnu"
 define i32 @_Z3foov() !dbg !7 {
 ; CHECK: bitcast
 ; CHECK: !dbg !11
-; CHECK: inttoptr 
+; CHECK: inttoptr
   %a0 = inttoptr i64 4646526064 to i32*, !dbg !11
   %v0 = load i32, i32* %a0, align 16, !dbg !11
 

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/delete-dead-cast-inst.ll b/llvm/test/Transforms/ConstantHoisting/X86/delete-dead-cast-inst.ll
index 5df4c1a376e59..c64cafc7827a0 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/delete-dead-cast-inst.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/delete-dead-cast-inst.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-apple-macosx10.9.0"

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll b/llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll
index 5be6004970f2c..a0ed1b2371ee3 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll
@@ -1,5 +1,5 @@
-; RUN: opt -S -consthoist -consthoist-with-block-frequency=false < %s | FileCheck %s
-; RUN: opt -S -consthoist -consthoist-with-block-frequency=true < %s | FileCheck --check-prefix=BFIHOIST %s
+; RUN: opt -S -passes=consthoist -consthoist-with-block-frequency=false < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist -consthoist-with-block-frequency=true < %s | FileCheck --check-prefix=BFIHOIST %s
 
 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-pc-windows-msvc"

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/ehphi.ll b/llvm/test/Transforms/ConstantHoisting/X86/ehphi.ll
index bf18733d344c6..dbbc31bab6c40 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/ehphi.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/ehphi.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 
 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-pc-windows-msvc"

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/large-immediate.ll b/llvm/test/Transforms/ConstantHoisting/X86/large-immediate.ll
index b8c04f38b12f4..cafb0cdbe1bf5 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/large-immediate.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/large-immediate.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=x86_64-darwin-unknown -S -consthoist < %s | FileCheck %s
+; RUN: opt -mtriple=x86_64-darwin-unknown -S -passes=consthoist < %s | FileCheck %s
 
 define i128 @test1(i128 %a) nounwind {
 ; CHECK-LABEL: test1

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/phi.ll b/llvm/test/Transforms/ConstantHoisting/X86/phi.ll
index f9fba3ee26a55..b44dc019300a7 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/phi.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/phi.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 ; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/pr43903-not-all-uses-rebased.ll b/llvm/test/Transforms/ConstantHoisting/X86/pr43903-not-all-uses-rebased.ll
index a5ca9b4b859ee..3f3ab1767bc1c 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/pr43903-not-all-uses-rebased.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/pr43903-not-all-uses-rebased.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -consthoist -consthoist-gep=1 -S | FileCheck %s
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -passes=consthoist -consthoist-gep=1 -S | FileCheck %s
 
 ; This is a reproducer for PR43903 where we hit an assertion:
 ; opt: ../lib/Transforms/Scalar/ConstantHoisting.cpp:903: bool llvm::ConstantHoistingPass::emitBaseConstants(llvm::GlobalVariable *): Assertion `UsesNum == (ReBasesNum + NotRebasedNum) && "Not all uses are rebased"' failed.

diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/stackmap.ll b/llvm/test/Transforms/ConstantHoisting/X86/stackmap.ll
index b9aee6b38fb0b..2d353341a04ee 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/stackmap.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/stackmap.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
+; RUN: opt -S -passes=consthoist < %s | FileCheck %s
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-apple-macosx10.9.0"


        


More information about the llvm-commits mailing list