diff options
| author | Renato Golin <renato.golin@linaro.org> | 2018-11-30 13:40:10 +0000 |
|---|---|---|
| committer | Renato Golin <renato.golin@linaro.org> | 2018-11-30 13:40:10 +0000 |
| commit | 135e72e1b9647f7740f9c619d45b3e4392a8acee (patch) | |
| tree | 0dbf076a1acba7a1148fd1688a10381b8a5cd636 /llvm/lib/Target | |
| parent | 26403def69f72c7938889c1902d62121095b93d7 (diff) | |
| download | bcm5719-llvm-135e72e1b9647f7740f9c619d45b3e4392a8acee.tar.gz bcm5719-llvm-135e72e1b9647f7740f9c619d45b3e4392a8acee.zip | |
Add a new reduction pattern match
Adding a new reduction pattern match for vectorizing code similar
to TSVC s3111:
for (int i = 0; i < N; i++)
if (a[i] > b)
sum += a[i];
This patch adds support for fadd, fsub and fmull, as well as multiple
branches and different (but compatible) instructions (ex. add+sub) in
different branches.
The difference from the previous patch(https://reviews.llvm.org/D49168)
is as follows:
- Added check of fast-math property of fp-instruction to the
previous patch
- Fix/add some pattern for if-reduction.ll
Differential Revision: https://reviews.llvm.org/D54464
Patch by Takahiro Miyoshi <takahiro.miyoshi@linaro.org>
and Masakazu Ueno <masakazu.ueno@linaro.org>
llvm-svn: 347989
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions

