summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-01-27 11:19:11 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-01-27 11:19:11 +0000
commit05cc93964a88d2ee329a196951dc55a0a5c469b1 (patch)
tree32a221624d07b6a5d4509c6eaae1d7e373d445e4 /llvm/lib/CodeGen/LiveVariables.cpp
parent69b664dfd7467b9613b0fbc16def83e906d01bbe (diff)
downloadbcm5719-llvm-05cc93964a88d2ee329a196951dc55a0a5c469b1.tar.gz
bcm5719-llvm-05cc93964a88d2ee329a196951dc55a0a5c469b1.zip
When the legalizer is splitting vector shifts, the result may not have the right shift amount type.
Fix that by adding a cast to the shift expander. This came up with vector shifts on sse-less X86 CPUs. <2 x i64> = shl <2 x i64> <2 x i64> -> i64,i64 = shl i64 i64; shl i64 i64 -> i32,i32,i32,i32 = shl_parts i32 i32 i64; shl_parts i32 i32 i64 Now we cast the last two i64s to the right type. Fixes the crash in PR14668. llvm-svn: 173615
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud