diff options
author | Sanjay Patel <spatel@rotateright.com> | 2020-12-14 17:20:15 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2020-12-14 17:42:01 -0500 |
commit | d399f870b5a94b9dcc1817ed69fec88c325bb817 (patch) | |
tree | 525d3d22875e4e0507cf3dfcb484e4c22a9d5045 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | d636b881bb9214938973098a012fad453082c444 (diff) | |
download | llvm-d399f870b5a94b9dcc1817ed69fec88c325bb817.zip llvm-d399f870b5a94b9dcc1817ed69fec88c325bb817.tar.gz llvm-d399f870b5a94b9dcc1817ed69fec88c325bb817.tar.bz2 |
[VectorCombine] make load transform poison-safe
As noted in D93229, the transform from scalar load to vector load
potentially leaks poison from the extra vector elements that are
being loaded.
We could use freeze here (and x86 codegen at least appears to be
the same either way), but we already have a shuffle in this logic
to optionally change the vector size, so let's allow that
instruction to serve both purposes.
Differential Revision: https://reviews.llvm.org/D93238
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions