Recognize code for doing vector gather/scatter index calculations with
authorDan Gohman <gohman@apple.com>
Mon, 15 Mar 2010 23:23:03 +0000 (23:23 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 15 Mar 2010 23:23:03 +0000 (23:23 +0000)
commit1bbf72b069d8f01779e99c8de2de8501dd3df20c
tree705d30bc08a4517fc94939e4e9cbc267b40a6696
parent33cc5cb9837469dabf31cc5a474e2c27d2b7d144
Recognize code for doing vector gather/scatter index calculations with
32-bit indices. Instead of shuffling each element out of the index vector,
when all indices are needed, just store the input vector to the stack and
load the elements out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98588 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/gather-addresses.ll [new file with mode: 0644]