diff options
| author | Thomas Lively <tlively@google.com> | 2019-06-19 00:02:13 +0000 |
|---|---|---|
| committer | Thomas Lively <tlively@google.com> | 2019-06-19 00:02:13 +0000 |
| commit | 1885747498c2730e47fee42a0c59492d09f4352f (patch) | |
| tree | fc67f58fb72ddf7bee539f723c447def4994231e /llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp | |
| parent | c6b5be6cf07858c9a76fbfea3f5a8d9bda1577a2 (diff) | |
| download | bcm5719-llvm-1885747498c2730e47fee42a0c59492d09f4352f.tar.gz bcm5719-llvm-1885747498c2730e47fee42a0c59492d09f4352f.zip | |
[WebAssembly] Optimize ISel for SIMD Boolean reductions
Summary:
Converting the result *.{all,any}_true to a bool at the source level
generates LLVM IR that compares the result to 0. This check is
redundant since these instructions already return either 0 or 1 and
therefore conform to the BooleanContents setting for WebAssembly. This
CL adds patterns to detect and remove such redundant operations on the
result of Boolean reductions.
Reviewers: dschuff, aheejin
Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D63529
llvm-svn: 363756
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp')
0 files changed, 0 insertions, 0 deletions

