Fix PR18054
authorMichael Liao <michael.liao@intel.com>
Tue, 26 Nov 2013 20:31:31 +0000 (20:31 +0000)
committerMichael Liao <michael.liao@intel.com>
Tue, 26 Nov 2013 20:31:31 +0000 (20:31 +0000)
commitfd115c47a275c1abe731d8125ccd13fcfc05dc22
treeabca83f53b1a67cbdcff5b0f5b48b428b0df7923
parent4e37ce82aaf13385e3113a7e7a68c0b97ef0078b
Fix PR18054

- Fix bug in (vsext (vzext x)) -> (vsext x) in SIGN_EXTEND_IN_REG
  lowering where we need to check whether x is a vector type (in-reg
  type) of i8, i16 or i32; otherwise, that optimization is not valid.

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