Skip to content

Commit 78c57c9

Browse files
authored
[LV] Fix missing REQUIRES: asserts in test (#151737)
e7200c7 ([LV] Pre-commit test for #151664) forgot to require asserts in the test, and stripped a CHECK line in error. Fix this.
1 parent 46f6e62 commit 78c57c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/test/Transforms/LoopVectorize/AArch64/pr151664-cost-hoisted-vector-scalable.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --filter-out-after "^scalar.ph" --version 5
2+
; REQUIRES: asserts
23
; RUN: opt -passes=loop-vectorize -mtriple=aarch64 -mattr=+sve -S \
34
; RUN: -debug-only=loop-vectorize %s 2>&1 | FileCheck %s
45

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

10+
; 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)
1011
define void @cost_hoisted_vector_code(ptr %p, float %arg) {
1112
; CHECK-LABEL: define void @cost_hoisted_vector_code(
1213
; CHECK-SAME: ptr [[P:%.*]], float [[ARG:%.*]]) #[[ATTR0:[0-9]+]] {

0 commit comments

Comments
 (0)