Don't attempt to create VZEXT_LOAD out of an extload. This an issue where the
authorNate Begeman <natebegeman@mac.com>
Wed, 28 May 2008 00:24:25 +0000 (00:24 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 28 May 2008 00:24:25 +0000 (00:24 +0000)
commitf7333bf4a2c3d833a971b2dc3015aa5304fb4f0d
tree81ba28a8cbc85f2284d9aaa47face7ea817fe948
parented185d6e967456ebb35acf5e7e2f9f80d3a8b11a
Don't attempt to create VZEXT_LOAD out of an extload.  This an issue where the
code generator would do something like this:

f64 = load f32 <anyext>, f32mem
v2f64 = insertelt undef, %0, 0
v2f64 = insertelt %1, 0.0, 1

into

v2f64 = vzext_load f32mem

which on x86 is movsd, when you really wanted a cvtss2sd/movsd pair.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51624 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp