[llvm] LoopVectorize/test: fix opt invocations with -march (NFC) (PR #74462)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 04:56:49 PST 2023


https://github.com/artagnon created https://github.com/llvm/llvm-project/pull/74462

opt erroneously accepts the -march command-line argument, although this argument has no effect. Fix a couple of tests under LoopVectorize that invoke opt with this argument, to avoid confusing users.

>From d94f7e0af460633fa52cf1167fe1ad491506e179 Mon Sep 17 00:00:00 2001
From: Ramkumar Ramachandra <Ramkumar.Ramachandra at imgtec.com>
Date: Tue, 5 Dec 2023 12:35:46 +0000
Subject: [PATCH] LoopVectorize/test: fix opt invocations with -march (NFC)

opt erroneously accepts the -march command-line argument, although this
argument has no effect. Fix a couple of tests under LoopVectorize that
invoke opt with this argument, to avoid confusing users.
---
 llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll | 3 +--
 llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll       | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll b/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll
index 4c7a7d31c5e72..4966ddd299492 100644
--- a/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll
+++ b/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll
@@ -1,4 +1,4 @@
-; RUN: opt -march=hexagon -hexagon-autohvx -passes=loop-vectorize -S < %s 2>&1 | FileCheck %s
+; RUN: opt -mtriple=hexagon -hexagon-autohvx -passes=loop-vectorize -S < %s 2>&1 | FileCheck %s
 
 ; Check that we don't crash.
 
@@ -6,7 +6,6 @@
 ; CHECK: vector.body
 
 target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
-target triple = "hexagon"
 
 ; Function Attrs: optsize
 define i32 @f() #0 {
diff --git a/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll b/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll
index 4ff7ad9ab4390..1ac556a2fda39 100644
--- a/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll
+++ b/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll
@@ -1,4 +1,4 @@
-; RUN: opt -march=hexagon -passes=loop-vectorize -hexagon-autohvx -debug-only=loop-vectorize -disable-output < %s 2>&1 | FileCheck %s
+; RUN: opt -mtriple=hexagon -passes=loop-vectorize -hexagon-autohvx -debug-only=loop-vectorize -disable-output < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 
 ; Check that TTI::getMinimumVF works. The calculated MaxVF was based on the
@@ -6,7 +6,6 @@
 ; CHECK: LV: Overriding calculated MaxVF({{[0-9]+}}) with target's minimum: 64
 
 target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
-target triple = "hexagon"
 
 %s.0 = type { ptr, i32, i32, i32, i32 }
 



More information about the llvm-commits mailing list