[x86] Fix a regression introduced with r213897 for 32-bit targets where
authorChandler Carruth <chandlerc@gmail.com>
Wed, 27 Aug 2014 11:39:47 +0000 (11:39 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 27 Aug 2014 11:39:47 +0000 (11:39 +0000)
commit7e3dc40fab4df617b6a17777ca9c76dc6c687d6e
tree9fcea166d42ad6b4f83c73e22064598dc7e81fcf
parent963a5e6c61efd020e186e675bddcb6b82b2d3153
[x86] Fix a regression introduced with r213897 for 32-bit targets where
we stopped efficiently lowering sextload using the SSE41 instructions
for that operation.

This is a consequence of a bad predicate I used thinking of the memory
access needs. The code actually handles the cases where the predicate
doesn't apply, and handles them much better. =] Simple fix and a test
case added. Fixes PR20767.

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