aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2021-08-25 15:28:06 -0700
committerCraig Topper <craig.topper@sifive.com>2021-08-26 09:33:24 -0700
commit8bb24289f3ac2bcf36d44d4951dc1a5e6822ae7b (patch)
treef4d2701663b397e72fabf0b0edc57e4dd863c198 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent70f3ccb6a24e2f796c13ffdc3fe2a77ffda71929 (diff)
downloadllvm-8bb24289f3ac2bcf36d44d4951dc1a5e6822ae7b.zip
llvm-8bb24289f3ac2bcf36d44d4951dc1a5e6822ae7b.tar.gz
llvm-8bb24289f3ac2bcf36d44d4951dc1a5e6822ae7b.tar.bz2
[SelectionDAG] Optimize bitreverse expansion to minimize the number of mask constants.
We can halve the number of mask constants by masking before shl and after srl. This can reduce the number of mov immediate or constant materializations. Or reduce the number of constant pool loads for X86 vectors. I think we might be able to do something similar for bswap. I'll look at it next. Differential Revision: https://reviews.llvm.org/D108738
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions