[X86][AVX] Match broadcast loads through a bitcast
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 7 Jan 2016 11:34:27 +0000 (11:34 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 7 Jan 2016 11:34:27 +0000 (11:34 +0000)
commit9233e73bf3e519fb9b7307cc674ce926fee5376b
treefe4aeea74378a97377dacd19cebb7c763aaad200
parentdb2b2ca62a9dc134a8aea14b14f0ebb6129ec3f4
[X86][AVX] Match broadcast loads through a bitcast

AVX1 v8i32/v4i64 shuffles are bitcasted to v8f32/v4f64, this patch peeks through bitcasts to check for a load node to allow broadcasts to occur.

Follow up to D15310

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257055 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/2012-01-12-extract-sv.ll
test/CodeGen/X86/avx-vbroadcast.ll