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

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 01:56:59 PST 2023


Author: Ramkumar Ramachandra
Date: 2023-12-08T09:56:55Z
New Revision: b0f560b8ea5782eff83b7646f713405eaafd9c73

URL: https://github.com/llvm/llvm-project/commit/b0f560b8ea5782eff83b7646f713405eaafd9c73
DIFF: https://github.com/llvm/llvm-project/commit/b0f560b8ea5782eff83b7646f713405eaafd9c73.diff

LOG: LoopVectorize/test: fix opt invocations with -march (NFC) (#74462)

opt accepts the -march command-line argument, but this argument only
makes sense in conjunction with -mtriple. Fix a couple of tests under
LoopVectorize that invoke opt with -march but without -mtriple, to avoid
confusing users.

Added: 
    

Modified: 
    llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll
    llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll

Removed: 
    


################################################################################
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