diff options
author | Simon Pilgrim <RKSimon@users.noreply.github.com> | 2024-02-19 11:32:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 11:32:23 +0000 |
commit | 769c22f25b81b74e4da7871d4e552584605caef1 (patch) | |
tree | 9aa10ee22644a752acead10c640a15d2ca1fadf9 /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | 21431e0f94c95703bd76e9ec5d2f0b39b8509680 (diff) | |
download | llvm-769c22f25b81b74e4da7871d4e552584605caef1.zip llvm-769c22f25b81b74e4da7871d4e552584605caef1.tar.gz llvm-769c22f25b81b74e4da7871d4e552584605caef1.tar.bz2 |
[VectorCombine] Fold reduce(trunc(x)) -> trunc(reduce(x)) iff cost effective (#81852)
Vector truncations can be pretty expensive, especially on X86, whilst scalar truncations are often free.
If the cost of performing the add/mul/and/or/xor reduction is cheap enough on the pre-truncated type, then avoid the vector truncation entirely.
Fixes https://github.com/llvm/llvm-project/issues/81469
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
0 files changed, 0 insertions, 0 deletions