[llvm] [LV] Add initial support for vectorizing literal struct return values (PR #109833)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 06:13:52 PST 2025
================
@@ -0,0 +1,133 @@
+; RUN: opt -passes=loop-vectorize,instcombine,simplifycfg < %s -S -o - | FileCheck %s --check-prefix=CHECK
----------------
david-arm wrote:
I think you can simplify this to a single opt run:
; RUN: opt -passes=loop-vectorize -debug-only=loop-vectorize < %s -S -o - 2>%t | FileCheck %s
; RUN: cat %t | FileCheck %s --check-prefix=CHECK-COST
and for the CHECK lines it looks like you only really need to add a CHECK line for the chosen VF, i.e. something like:
; CHECK-LABEL: define void @struct_return_widen(
; CHECK: vector.body:
; CHECK: call { <2 x half>, <2 x half> } @fixed_vec_foo(<2 x half>
etc.
https://github.com/llvm/llvm-project/pull/109833
More information about the llvm-commits
mailing list