[llvm] [NFC][SPIR-V] Remove unnecessary 'REQUIRES: asserts' from tests (PR #190986)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 08:09:34 PDT 2026


https://github.com/aobolensk created https://github.com/llvm/llvm-project/pull/190986

Remove `REQUIRES: asserts` from tests that don't use any assertions-only functionality and should run for all build configurations

>From 9e1eb35c83a6617da1a3ea89a8774803e2a15641 Mon Sep 17 00:00:00 2001
From: Arseniy Obolenskiy <arseniy.obolenskiy at amd.com>
Date: Wed, 8 Apr 2026 17:08:55 +0200
Subject: [PATCH] [NFC][SPIR-V] Remove unnecessary 'REQUIRES: asserts' from
 tests

Remove `REQUIRES: asserts` from tests that don't use any assertions-only functionality and should run for all build configurations
---
 .../InstCombine/prelegalizercombiner-length-to-distance.mir     | 1 -
 .../InstCombine/prelegalizercombiner-select-to-faceforward.mir  | 1 -
 llvm/test/CodeGen/SPIRV/llc-pipeline.ll                         | 2 --
 .../test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll | 2 --
 4 files changed, 6 deletions(-)

diff --git a/llvm/test/CodeGen/SPIRV/GlobalISel/InstCombine/prelegalizercombiner-length-to-distance.mir b/llvm/test/CodeGen/SPIRV/GlobalISel/InstCombine/prelegalizercombiner-length-to-distance.mir
index 219b98ecca6f0..c201fa7b1f7f1 100644
--- a/llvm/test/CodeGen/SPIRV/GlobalISel/InstCombine/prelegalizercombiner-length-to-distance.mir
+++ b/llvm/test/CodeGen/SPIRV/GlobalISel/InstCombine/prelegalizercombiner-length-to-distance.mir
@@ -1,5 +1,4 @@
 # RUN: llc -verify-machineinstrs -O0 -mtriple spirv-unknown-unknown -run-pass=spirv-prelegalizer-combiner %s -o - | FileCheck %s
-# REQUIRES: asserts
 ---
 name:            distance_instcombine_float4
 tracksRegLiveness: true
diff --git a/llvm/test/CodeGen/SPIRV/GlobalISel/InstCombine/prelegalizercombiner-select-to-faceforward.mir b/llvm/test/CodeGen/SPIRV/GlobalISel/InstCombine/prelegalizercombiner-select-to-faceforward.mir
index fc89f58451809..7ca8e1439610b 100644
--- a/llvm/test/CodeGen/SPIRV/GlobalISel/InstCombine/prelegalizercombiner-select-to-faceforward.mir
+++ b/llvm/test/CodeGen/SPIRV/GlobalISel/InstCombine/prelegalizercombiner-select-to-faceforward.mir
@@ -1,5 +1,4 @@
 # RUN: llc -verify-machineinstrs -O0 -mtriple spirv-vulkan1.3-unknown -run-pass=spirv-prelegalizer-combiner %s -o - | FileCheck %s
-# REQUIRES: asserts
 ---
 name:            faceforward_instcombine_float
 tracksRegLiveness: true
diff --git a/llvm/test/CodeGen/SPIRV/llc-pipeline.ll b/llvm/test/CodeGen/SPIRV/llc-pipeline.ll
index 81d7c1b985eb4..2e83b3fe07d8b 100644
--- a/llvm/test/CodeGen/SPIRV/llc-pipeline.ll
+++ b/llvm/test/CodeGen/SPIRV/llc-pipeline.ll
@@ -7,8 +7,6 @@
 ; RUN:   | FileCheck -match-full-lines -strict-whitespace -check-prefix=SPIRV-Opt %s
 ; RUN:llc -O3 -mtriple=spirv-- -disable-verify -debug-pass=Structure < %s 2>&1 \
 ; RUN:   | FileCheck -match-full-lines -strict-whitespace -check-prefix=SPIRV-Opt %s
-;
-; REQUIRES:asserts
 
 ; SPIRV-O0:Target Library Information
 ; SPIRV-O0-NEXT:Runtime Library Function Analysis
diff --git a/llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll b/llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll
index e1170cf3c3bf0..54a6e8e38d536 100644
--- a/llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll
+++ b/llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll
@@ -1,7 +1,5 @@
 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
 
-; REQUIRES: asserts
-
 ; CHECK: %[[#bool:]] = OpTypeBool
 ; CHECK: %[[#true:]] = OpConstantTrue %[[#bool]]
 ; CHECK: OpBranchConditional %[[#true]]



More information about the llvm-commits mailing list