diff options
author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2019-07-25 07:33:13 +0000 |
---|---|---|
committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2019-07-25 07:33:13 +0000 |
commit | a48f58c97feca138f772e2cf122f229d6e341d82 (patch) | |
tree | cbbebea1d0812d3b8092c53429aa27b1fb332f55 /clang/test/Parser/pragma-unroll-and-jam.cpp | |
parent | 3e023a6dbceca8dba9763d102079aff0d9861e05 (diff) | |
download | bcm5719-llvm-a48f58c97feca138f772e2cf122f229d6e341d82.tar.gz bcm5719-llvm-a48f58c97feca138f772e2cf122f229d6e341d82.zip |
[Clang] New loop pragma vectorize_predicate
This adds a new vectorize predication loop hint:
#pragma clang loop vectorize_predicate(enable)
that can be used to indicate to the vectoriser that all (load/store)
instructions should be predicated (masked). This allows, for example, folding
of the remainder loop into the main loop.
This patch will be followed up with D64916 and D65197. The former is a
refactoring in the loopvectorizer and the groundwork to make tail loop folding
a more general concept, and in the latter the actual tail loop folding
transformation will be implemented.
Differential Revision: https://reviews.llvm.org/D64744
llvm-svn: 366989
Diffstat (limited to 'clang/test/Parser/pragma-unroll-and-jam.cpp')
-rw-r--r-- | clang/test/Parser/pragma-unroll-and-jam.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/pragma-unroll-and-jam.cpp b/clang/test/Parser/pragma-unroll-and-jam.cpp index ef1867aa195..6ff9f1fe853 100644 --- a/clang/test/Parser/pragma-unroll-and-jam.cpp +++ b/clang/test/Parser/pragma-unroll-and-jam.cpp @@ -67,7 +67,7 @@ void test(int *List, int Length, int Value) { } // pragma clang unroll_and_jam is disabled for the moment -/* expected-error {{invalid option 'unroll_and_jam'; expected vectorize, vectorize_width, interleave, interleave_count, unroll, unroll_count, pipeline, pipeline_initiation_interval, or distribute}} */ #pragma clang loop unroll_and_jam(4) +/* expected-error {{invalid option 'unroll_and_jam'; expected vectorize, vectorize_width, interleave, interleave_count, unroll, unroll_count, pipeline, pipeline_initiation_interval, vectorize_predicate, or distribute}} */ #pragma clang loop unroll_and_jam(4) for (int i = 0; i < Length; i++) { for (int j = 0; j < Length; j++) { List[i * Length + j] = Value; |