Skip to content
Open
Show file tree
Hide file tree
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
Expand Up @@ -80,7 +80,7 @@ static cl::opt<LoopVectorizeHints::ScalableForceKind>
"cost is inconclusive.")));

static cl::opt<bool> EnableHistogramVectorization(
"enable-histogram-loop-vectorization", cl::init(false), cl::Hidden,
"enable-histogram-loop-vectorization", cl::init(true), cl::Hidden,
cl::desc("Enables autovectorization of some loops containing histograms"));

/// Maximum vectorization interleave count.
Expand Down
4 changes: 1 addition & 3 deletions llvm/test/Transforms/LoopVectorize/increment.ll
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ define void @inc(i32 %n) nounwind uwtable noinline ssp {
ret void
}

; Can't vectorize this loop because the access to A[X] is non-linear.
;
; for (i = 0; i < n; ++i) {
; A[B[i]]++;
;
;CHECK-LABEL: @histogram(
;CHECK-NOT: <4 x i32>
;CHECK: call void @llvm.experimental.vector.histogram.add.v4p0.i32(<4 x ptr> %{{.*}}, i32 1, <4 x i1> splat (i1 true))
;CHECK: ret i32
define i32 @histogram(ptr nocapture noalias %A, ptr nocapture noalias %B, i32 %n) nounwind uwtable ssp {
entry:
Expand Down
Loading