OSDN Git Service

Fixes two issue in SimplifyDemandedBits of sext_in_reg:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 18 Feb 2015 09:43:40 +0000 (09:43 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 18 Feb 2015 09:43:40 +0000 (09:43 +0000)
commit9571ea66208c00e179fca478ddff78e49f122668
treef58afbb60071854cd5f9f507d02b4bcb87005390
parent030d82b50275aa00da57bc927727bcf03f678f0d
Fixes two issue in SimplifyDemandedBits of sext_in_reg:
1) We should not try to simplify if the sext has multiple uses
2) There is no need to simplify is the source value is already sign-extended.

Patch by Gil Rapaport <gil.rapaport@intel.com>

Differential Revision: http://reviews.llvm.org/D6949

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229659 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/vector-blend.ll
test/CodeGen/X86/vselect-avx.ll