[llvm] [Tests][LoopDistribute] Re-adding target triple in a test that was removed earlier to fix build errors (PR #82954)

Nilanjana Basu via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 19:16:17 PST 2024


https://github.com/nilanjana87 created https://github.com/llvm/llvm-project/pull/82954

This triple was removed earlier to fix build errors because of target-specific cost model. It seems more correct to add target requirement for the test than remove it.

>From 1eae8abb4d7f83754a4121ef43896dc9f0617ccd Mon Sep 17 00:00:00 2001
From: Nilanjana Basu <n_basu at apple.com>
Date: Sun, 25 Feb 2024 18:50:15 -0800
Subject: [PATCH] [Tests][LoopDistribute] Re-adding target triple in a test
 that was removed earlier to fix build errors

---
 llvm/test/Transforms/LoopDistribute/basic-with-memchecks.ll | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/llvm/test/Transforms/LoopDistribute/basic-with-memchecks.ll b/llvm/test/Transforms/LoopDistribute/basic-with-memchecks.ll
index 2b9f777e9f3b24..97ea2c6708dadf 100644
--- a/llvm/test/Transforms/LoopDistribute/basic-with-memchecks.ll
+++ b/llvm/test/Transforms/LoopDistribute/basic-with-memchecks.ll
@@ -1,3 +1,4 @@
+; REQUIRES: x86-registered-target
 ; RUN: opt -aa-pipeline=basic-aa -passes=loop-distribute -enable-loop-distribute -verify-loop-info -verify-dom-info -S \
 ; RUN:   < %s | FileCheck %s
 
@@ -18,6 +19,7 @@
 ;   }
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-apple-macosx10.10.0"
 
 @B = common global ptr null, align 8
 @A = common global ptr null, align 8
@@ -77,6 +79,7 @@ entry:
 ; CHECK: for.end:
 
 
+; VECTORIZE: mul <4 x i32>
 ; VECTORIZE: mul <4 x i32>
 ; VECTORIZE-NOT: mul <4 x i32>
 



More information about the llvm-commits mailing list