36 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --filter "LV: Found an estimated cost of [0-9] for VF [0-9] For instruction:\s*store ptr %[0-9], ptr %__last" --filter "LV: Found an estimated cost of [0-9] for VF [0-9] For instruction:\s*store ptr %[0-9]" --version 52; REQUIRES: asserts3; RUN: opt -passes=loop-vectorize -debug-only=loop-vectorize -S < %s 2>&1 | FileCheck %s4target triple = "x86_64-unknown-linux-gnu"5 6define ptr @foo(ptr %__first, ptr %__last) #0 {7; CHECK-LABEL: 'foo'8; CHECK: LV: Found an estimated cost of 1 for VF 1 For instruction: store ptr %0, ptr %__last, align 89; CHECK: LV: Found an estimated cost of 2 for VF 2 For instruction: store ptr %0, ptr %__last, align 810; CHECK: LV: Found an estimated cost of 3 for VF 4 For instruction: store ptr %0, ptr %__last, align 811; CHECK: LV: Found an estimated cost of 3 for VF 8 For instruction: store ptr %0, ptr %__last, align 812;13entry:14 %cmp.not1 = icmp eq ptr %__first, %__last15 br i1 %cmp.not1, label %for.end, label %for.body.preheader16 17for.body.preheader:18 br label %for.body19 20for.body:21 %__first.addr.02 = phi ptr [ %incdec.ptr, %for.body ], [ %__first, %for.body.preheader ]22 %0 = load ptr, ptr %__first.addr.02, align 823 store ptr %0, ptr %__last, align 824 %incdec.ptr = getelementptr inbounds i8, ptr %__first.addr.02, i64 1625 %cmp.not = icmp eq ptr %incdec.ptr, %__last26 br i1 %cmp.not, label %for.end.loopexit, label %for.body27 28for.end.loopexit:29 br label %for.end30 31for.end:32 ret ptr null33}34 35attributes #0 = { "target-cpu"="znver4" }36