aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-09-15 17:09:03 +0000
committerCraig Topper <craig.topper@intel.com>2017-09-15 17:09:03 +0000
commite0d724cf51dfb8e0fb331b9bb902da52b0cb1d27 (patch)
tree030e7026879fde301c358b577a8cec4cdda28af8 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent143797eb8970ba783b150f7b246607c22b52f7da (diff)
downloadllvm-e0d724cf51dfb8e0fb331b9bb902da52b0cb1d27.zip
llvm-e0d724cf51dfb8e0fb331b9bb902da52b0cb1d27.tar.gz
llvm-e0d724cf51dfb8e0fb331b9bb902da52b0cb1d27.tar.bz2
[X86] Don't create i64 constants on 32-bit targets when lowering v64i1 constant build vectors
When handling a v64i1 build vector of constants on 32-bit targets we were creating an illegal i64 constant that we then bitcasted back to v64i1. We need to instead create two 32-bit constants, bitcast them to v32i1 and concat the result. We should also take care to handle the halves being all zeros/ones after the split. This patch splits the build vector and then recursively lowers the two pieces. This allows us to handle the all ones and all zeros cases with minimal effort. Ideally we'd just do the split and concat, and let lowering get called again on the new nodes, but getNode has special handling for CONCAT_VECTORS that reassembles the pieces back into a single BUILD_VECTOR. Hopefully the two temporary BUILD_VECTORS we had to create to do this that don't get returned don't cause any issues. Fixes PR34605. Differential Revision: https://reviews.llvm.org/D37858 llvm-svn: 313366
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions