mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Special case handling two wide build_vector(0, x).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27961 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
64e9769339
commit
37d1d9bc66
@ -3236,10 +3236,6 @@ SDOperand X86TargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
|
||||
MVT::ValueType EVT = MVT::getVectorBaseType(VT);
|
||||
unsigned EVTBits = MVT::getSizeInBits(EVT);
|
||||
|
||||
// Let legalizer expand 2-widde build_vector's.
|
||||
if (EVTBits == 64)
|
||||
return SDOperand();
|
||||
|
||||
unsigned NumElems = Op.getNumOperands();
|
||||
unsigned NumZero = 0;
|
||||
unsigned NumNonZero = 0;
|
||||
@ -3291,6 +3287,10 @@ SDOperand X86TargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
|
||||
}
|
||||
}
|
||||
|
||||
// Let legalizer expand 2-widde build_vector's.
|
||||
if (EVTBits == 64)
|
||||
return SDOperand();
|
||||
|
||||
// If element VT is < 32 bits, convert it to inserts into a zero vector.
|
||||
if (EVTBits == 8) {
|
||||
SDOperand V = LowerBuildVectorv16i8(Op, NonZeros,NumNonZero,NumZero, DAG);
|
||||
|
Loading…
Reference in New Issue
Block a user