Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Transforms/LoopVectorize/X86/vect.omp.force.ll
; RUN: opt < %s -loop-vectorize -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx -debug-only=loop-vectorize -stats -S 2>&1 | FileCheck %s | ; RUN: opt < %s -loop-vectorize -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx -debug-only=loop-vectorize -stats -S 2>&1 | FileCheck %s | ||||
; REQUIRES: asserts | ; REQUIRES: asserts | ||||
; CHECK: LV: Loop hints: force=enabled | ; CHECK: LV: Loop hints: force_vectorization=enabled width=0 force_interleave=disabled interleave=0 | ||||
; CHECK: LV: Loop hints: force=? | ; CHECK: LV: Loop hints: force_vectorization=? width=0 force_interleave=? interleave=0 | ||||
; No more loops in the module | ; No more loops in the module | ||||
; CHECK-NOT: LV: Loop hints: force= | ; CHECK-NOT: LV: Loop hints: force= | ||||
; CHECK: 2 loop-vectorize - Number of loops analyzed for vectorization | ; CHECK: 2 loop-vectorize - Number of loops analyzed for vectorization | ||||
; CHECK: 1 loop-vectorize - Number of loops vectorized | ; CHECK: 1 loop-vectorize - Number of loops vectorized | ||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" | target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" | ||||
target triple = "x86_64-apple-macosx10.8.0" | target triple = "x86_64-apple-macosx10.8.0" | ||||
Show All 29 Lines | |||||
for.end.loopexit: | for.end.loopexit: | ||||
br label %for.end | br label %for.end | ||||
for.end: | for.end: | ||||
ret void | ret void | ||||
} | } | ||||
!1 = !{!1, !2, !{!"llvm.loop.parallel_accesses", !11}} | !1 = !{!1, !2, !{!"llvm.loop.parallel_accesses", !11}, !4} | ||||
!2 = !{!"llvm.loop.vectorize.enable", i1 true} | !2 = !{!"llvm.loop.vectorize.enable", i1 true} | ||||
!11 = distinct !{} | !11 = distinct !{} | ||||
!4 = !{!"llvm.loop.interleave.enable", i1 false} | |||||
; | ; | ||||
; This method will not be vectorized, as scalar cost is lower than any of vector costs. | ; This method will not be vectorized, as scalar cost is lower than any of vector costs. | ||||
; | ; | ||||
define void @not_vectorized(float* noalias nocapture %A, float* noalias nocapture %B) { | define void @not_vectorized(float* noalias nocapture %A, float* noalias nocapture %B) { | ||||
entry: | entry: | ||||
br label %for.body | br label %for.body | ||||
Show All 26 Lines |