Fix PR14161
authorMichael Liao <michael.liao@intel.com>
Tue, 23 Oct 2012 21:40:15 +0000 (21:40 +0000)
committerMichael Liao <michael.liao@intel.com>
Tue, 23 Oct 2012 21:40:15 +0000 (21:40 +0000)
commit0787274b70e718af737bd3c0f427574acd829810
tree696e84cfb96846dfb844ee9b092977254aa4ef25
parente8e6b6b71046e580cf2c94cbe7544aac75dcdfd8
Fix PR14161

- Check index being extracted to be constant 0 before simplfiying.
  Otherwise, retain the original sequence.

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