[llvm] aa79ad4 - [Bitcode] Remove -opaque-pointer=0 check lines (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 07:43:48 PDT 2023
Author: Nikita Popov
Date: 2023-06-20T16:43:14+02:00
New Revision: aa79ad4d1a16194e6809b494364cfef451f6bfbc
URL: https://github.com/llvm/llvm-project/commit/aa79ad4d1a16194e6809b494364cfef451f6bfbc
DIFF: https://github.com/llvm/llvm-project/commit/aa79ad4d1a16194e6809b494364cfef451f6bfbc.diff
LOG: [Bitcode] Remove -opaque-pointer=0 check lines (NFC)
These tests were testing both typed an opaque pointers. Only keep
opaque pointers tests.
Added:
Modified:
llvm/test/Bitcode/DIExpression-aggresult.ll
llvm/test/Bitcode/aggregateInstructions.3.2.ll
llvm/test/Bitcode/case-ranges-3.3.ll
llvm/test/Bitcode/function-local-metadata.3.5.ll
llvm/test/Bitcode/x86_intr-upgrade.test
Removed:
################################################################################
diff --git a/llvm/test/Bitcode/DIExpression-aggresult.ll b/llvm/test/Bitcode/DIExpression-aggresult.ll
index c8b0720e4349e..0b89454aa2f94 100644
--- a/llvm/test/Bitcode/DIExpression-aggresult.ll
+++ b/llvm/test/Bitcode/DIExpression-aggresult.ll
@@ -1,5 +1,4 @@
-; RUN: llvm-dis -opaque-pointers=0 -o - %s.bc | FileCheck %s
-; RUN: llvm-dis -opaque-pointers=1 -o - %s.bc | FileCheck %s
+; RUN: llvm-dis -o - %s.bc | FileCheck %s
%class.A = type { i32, i32, i32, i32 }
define void @_Z3fooi(%class.A* sret(%class.A) %agg.result) #0 !dbg !3 {
diff --git a/llvm/test/Bitcode/aggregateInstructions.3.2.ll b/llvm/test/Bitcode/aggregateInstructions.3.2.ll
index c6baa069d0b5b..3126abe3e28be 100644
--- a/llvm/test/Bitcode/aggregateInstructions.3.2.ll
+++ b/llvm/test/Bitcode/aggregateInstructions.3.2.ll
@@ -1,5 +1,4 @@
-; RUN: llvm-dis -opaque-pointers=0 < %s.bc| FileCheck %s
-; RUN: llvm-dis -opaque-pointers=1 < %s.bc| FileCheck %s
+; RUN: llvm-dis < %s.bc | FileCheck %s
; RUN: verify-uselistorder < %s.bc
; aggregateOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
diff --git a/llvm/test/Bitcode/case-ranges-3.3.ll b/llvm/test/Bitcode/case-ranges-3.3.ll
index 5d538da9877e6..eb55ef1ad21ec 100644
--- a/llvm/test/Bitcode/case-ranges-3.3.ll
+++ b/llvm/test/Bitcode/case-ranges-3.3.ll
@@ -1,5 +1,4 @@
-; RUN: llvm-dis -opaque-pointers=0 < %s.bc| FileCheck %s
-; RUN: llvm-dis -opaque-pointers=1 < %s.bc| FileCheck %s
+; RUN: llvm-dis < %s.bc| FileCheck %s
; RUN: verify-uselistorder < %s.bc
; case-ranges.ll.bc was generated by passing this file to llvm-as from the 3.3
diff --git a/llvm/test/Bitcode/function-local-metadata.3.5.ll b/llvm/test/Bitcode/function-local-metadata.3.5.ll
index 149f381a70cb0..5bd829682cc41 100644
--- a/llvm/test/Bitcode/function-local-metadata.3.5.ll
+++ b/llvm/test/Bitcode/function-local-metadata.3.5.ll
@@ -1,5 +1,4 @@
-; RUN: llvm-dis -opaque-pointers=0 < %s.bc | FileCheck %s
-; RUN: llvm-dis -opaque-pointers=1 < %s.bc | FileCheck %s
+; RUN: llvm-dis < %s.bc | FileCheck %s
; Check that function-local metadata is dropped correctly when it's not a
; direct argument to a call instruction.
diff --git a/llvm/test/Bitcode/x86_intr-upgrade.test b/llvm/test/Bitcode/x86_intr-upgrade.test
index 1e96ce862b31c..61bc4ea8f2c32 100644
--- a/llvm/test/Bitcode/x86_intr-upgrade.test
+++ b/llvm/test/Bitcode/x86_intr-upgrade.test
@@ -1,20 +1,11 @@
-RUN: llvm-dis %p/Inputs/x86_intrcc_upgrade.bc -opaque-pointers=0 -o - | FileCheck %s
-RUN: llvm-dis %p/Inputs/x86_intrcc_upgrade.bc -opaque-pointers=1 -o - | FileCheck %s --check-prefix=OPAQUE
+RUN: llvm-dis %p/Inputs/x86_intrcc_upgrade.bc -o - | FileCheck %s
Make sure we upgrade x86_intrcc to a byval with explicit type
CHECK: define x86_intrcc void @no_args() {
-CHECK: define x86_intrcc void @non_byval_ptr_arg0(i32* byval(i32) %0)
-CHECK: define x86_intrcc void @non_byval_ptr_struct(%struct* byval(%struct) %0)
+CHECK: define x86_intrcc void @non_byval_ptr_arg0(ptr byval(i32) %0)
+CHECK: define x86_intrcc void @non_byval_ptr_struct(ptr byval(%struct) %0)
CHECK: declare x86_intrcc void @no_args_decl()
-CHECK: declare x86_intrcc void @non_byval_ptr_arg0_decl(i32* byval(i32))
-CHECK: declare x86_intrcc void @non_byval_ptr_struct_decl(%struct* byval(%struct))
-
-OPAQUE: define x86_intrcc void @no_args() {
-OPAQUE: define x86_intrcc void @non_byval_ptr_arg0(ptr byval(i32) %0)
-OPAQUE: define x86_intrcc void @non_byval_ptr_struct(ptr byval(%struct) %0)
-
-OPAQUE: declare x86_intrcc void @no_args_decl()
-OPAQUE: declare x86_intrcc void @non_byval_ptr_arg0_decl(ptr byval(i32))
-OPAQUE: declare x86_intrcc void @non_byval_ptr_struct_decl(ptr byval(%struct))
+CHECK: declare x86_intrcc void @non_byval_ptr_arg0_decl(ptr byval(i32))
+CHECK: declare x86_intrcc void @non_byval_ptr_struct_decl(ptr byval(%struct))
More information about the llvm-commits
mailing list