diff options
author | Qiu Chaofan <qiucofan@cn.ibm.com> | 2021-03-10 15:21:32 +0800 |
---|---|---|
committer | Qiu Chaofan <qiucofan@cn.ibm.com> | 2021-03-10 15:21:32 +0800 |
commit | 4c973ae51b859dca9792e1ad87a6673c49815a8d (patch) | |
tree | 194c140d98b8a02058eaee7e08a8de42686b94f2 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | |
parent | cd6d1799adfc589626917bce968f33cca821a129 (diff) | |
download | llvm-4c973ae51b859dca9792e1ad87a6673c49815a8d.zip llvm-4c973ae51b859dca9792e1ad87a6673c49815a8d.tar.gz llvm-4c973ae51b859dca9792e1ad87a6673c49815a8d.tar.bz2 |
[PowerPC] Reduce symmetrical swaps for lane-insensitive vector ops
This patch simplifies pattern (xxswap (vec-op (xxswap a) (xxswap b)))
into (vec-op a b) if vec-op is lane-insensitive. The motivating case
is ScalarToVector-VecOp-ExtractElement sequence on LE, but the
peephole itself is not related to endianness, so BE may also benefit
from this.
Reviewed By: nemanjai
Differential Revision: https://reviews.llvm.org/D97658
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions