[X86] Remove bad pattern that caused 128-bit loads being used by scalar sqrt/rcp...
authorCraig Topper <craig.topper@gmail.com>
Tue, 6 Dec 2016 08:08:04 +0000 (08:08 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 6 Dec 2016 08:08:04 +0000 (08:08 +0000)
commit683470bf1bff8f28fdbadd54f37c629956519edf
treee514b02ff0ec4ffa6b993730a8f908c75db03a08
parent125939ff65b8f5832342dbccb590cf111f9fff27
[X86] Remove bad pattern that caused 128-bit loads being used by scalar sqrt/rcp/rsqrt intrinsics to select the memory form of the corresponding instruction and violate the semantics of the intrinsic.

The intrinsics are supposed to pass the upper bits straight through to their output register. This means we need to make sure we still perform the 128-bit load to get those upper bits to pass to give to the instruction since the memory form of the instruction only reads 32 or 64 bits.

llvm-svn: 288781
llvm/lib/Target/X86/X86InstrSSE.td
llvm/test/CodeGen/X86/sse2-intrinsics-x86.ll