aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorBenjamin Maxwell <benjamin.maxwell@arm.com>2022-11-16 10:45:48 +0000
committerCullen Rhodes <cullen.rhodes@arm.com>2022-11-16 11:17:07 +0000
commit18149218939774b5eac228adc5c3958fbaac9028 (patch)
treeb87387adb1f7bec136243a27ba5a722ad98b3068 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent5ea7b6b78ff6c7d914e0e9279a368966be5f13df (diff)
downloadllvm-18149218939774b5eac228adc5c3958fbaac9028.zip
llvm-18149218939774b5eac228adc5c3958fbaac9028.tar.gz
llvm-18149218939774b5eac228adc5c3958fbaac9028.tar.bz2
[AArch64][CodeGen] Remove redundant vector negations before concat
This adds a new canonicalization rule to replace concats of truncated negations with a negation of the concatenated truncates, e.g. (concat_vectors (v4i16 (truncate (not (v4i32)))), (v4i16 (truncate (not (v4i32))))) -> (not (concat_vectors (v4i16 (truncate (v4i32))), (v4i16 (truncate (v4i32))))) Doing this allows avoiding redundant negations being emitted in certain cases. Reviewed By: peterwaller-arm Differential Revision: https://reviews.llvm.org/D137433
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions