aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2020-03-01 16:42:04 -0800
committerCraig Topper <craig.topper@gmail.com>2020-03-01 18:13:25 -0800
commit0cd6712a7af0fa2702b5d4cc733500eb5e62e7d0 (patch)
tree3a8d47cc84029df69b0a0fd0f6868b1aecfb898f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent2ac19feb1571960b8e1479a451b45ab56da7034e (diff)
downloadllvm-0cd6712a7af0fa2702b5d4cc733500eb5e62e7d0.zip
llvm-0cd6712a7af0fa2702b5d4cc733500eb5e62e7d0.tar.gz
llvm-0cd6712a7af0fa2702b5d4cc733500eb5e62e7d0.tar.bz2
[DAGCombiner][X86] Disable narrowExtractedVectorLoad if the element type size isn't byte sized
The address calculation for the offset assumes that you can calculate the offset by multiplying the index by the store size of the element. But that only works if the element's store size is exactly its real size since we store vectors tightly packed in memory. There are improvements we could make to this like special casing extracting element 0. I think we could also handle cases where the extracted VT is byte sized and the index is aligned with the extract element count. Differential Revision: https://reviews.llvm.org/D75377
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions