Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --filter-out-after "^scalar.ph" --version 5
; REQUIRES: asserts
; RUN: opt -passes=loop-vectorize -mtriple=aarch64 -mattr=+sve -S \
; RUN: -debug-only=loop-vectorize %s 2>&1 | FileCheck %s

; FIXME: Hoisted vector code should be costed with scalable cost.
; In this example, `<vscale x 4 x float> @llvm.minimumnum` has an invalid cost,
; and hence should not be produced by LoopVectorize. Unfortunately, what is
; actually costed is `<4 x float> @llvm.minimumnum`.
; and hence should not be produced by LoopVectorize.

; CHECK: LV: Found an estimated cost of Invalid for VF vscale x 4 For instruction: %res = tail call float @llvm.minimumnum.f32(float %arg, float 0.000000e+00)
define void @cost_hoisted_vector_code(ptr %p, float %arg) {
; CHECK-LABEL: define void @cost_hoisted_vector_code(
; CHECK-SAME: ptr [[P:%.*]], float [[ARG:%.*]]) #[[ATTR0:[0-9]+]] {
Expand Down