OSDN Git Service

LegalizeTypes: Handle shift by 0 in ExpandShiftByConstant.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Fri, 6 Mar 2015 01:13:01 +0000 (01:13 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Fri, 6 Mar 2015 01:13:01 +0000 (01:13 +0000)
commit6023ad2d3700ba00420f26221c782cb728686644
treeb154a9aea2586e9b129f5e81d938d56075565709
parentb6fd95ab412e24fe8cb1f9d2f884527e050bfca7
LegalizeTypes: Handle shift by 0 in ExpandShiftByConstant.

Though such shifts are usually optimized away by combiner, we still can
encounter them after a vector shift is legalized.

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