[llvm] [NVPTX] Fix NVPTXAA_before_BasicAA Test (PR #138992)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 7 16:44:00 PDT 2025


https://github.com/Chengjunp created https://github.com/llvm/llvm-project/pull/138992

Fix the failed test in the [PR](https://github.com/llvm/llvm-project/pull/125965) by adding the REQUIRES for nvptx-registered-target.

>From 1572f7dc4db3201528a198b9a33425f3e66d1ed4 Mon Sep 17 00:00:00 2001
From: chengjunp <chengjunp at nvidia.com>
Date: Wed, 7 May 2025 23:49:45 +0000
Subject: [PATCH] Fix NVPTXAA_before_BasicAA test

---
 llvm/test/Analysis/NVPTXAA/NVPTXAA_before_BasicAA.ll | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/test/Analysis/NVPTXAA/NVPTXAA_before_BasicAA.ll b/llvm/test/Analysis/NVPTXAA/NVPTXAA_before_BasicAA.ll
index 0d16b344e9f66..d43ab29a14cef 100644
--- a/llvm/test/Analysis/NVPTXAA/NVPTXAA_before_BasicAA.ll
+++ b/llvm/test/Analysis/NVPTXAA/NVPTXAA_before_BasicAA.ll
@@ -1,4 +1,4 @@
-; REQUIRES: asserts
+; REQUIRES: asserts, nvptx-registered-target
 ; RUN: opt -aa-pipeline=default -passes='require<aa>' -debug-pass-manager -disable-output -S < %s 2>&1 | FileCheck %s
 ; RUN: llc --debug-only='aa' -o /dev/null %s 2>&1 | FileCheck %s -check-prefix=LEGACY
 



More information about the llvm-commits mailing list