mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-24 08:18:33 +00:00
Use early exit to reduce indentation. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3171,9 +3171,10 @@ SDValue PPCTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) {
|
|||||||
APInt APSplatBits, APSplatUndef;
|
APInt APSplatBits, APSplatUndef;
|
||||||
unsigned SplatBitSize;
|
unsigned SplatBitSize;
|
||||||
bool HasAnyUndefs;
|
bool HasAnyUndefs;
|
||||||
if (BVN->isConstantSplat(APSplatBits, APSplatUndef, SplatBitSize,
|
if (! BVN->isConstantSplat(APSplatBits, APSplatUndef, SplatBitSize,
|
||||||
HasAnyUndefs) &&
|
HasAnyUndefs) || SplatBitSize > 32)
|
||||||
SplatBitSize <= 32) {
|
return SDValue();
|
||||||
|
|
||||||
unsigned SplatBits = APSplatBits.getZExtValue();
|
unsigned SplatBits = APSplatBits.getZExtValue();
|
||||||
unsigned SplatUndef = APSplatUndef.getZExtValue();
|
unsigned SplatUndef = APSplatUndef.getZExtValue();
|
||||||
unsigned SplatSize = SplatBitSize / 8;
|
unsigned SplatSize = SplatBitSize / 8;
|
||||||
@@ -3317,7 +3318,6 @@ SDValue PPCTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) {
|
|||||||
LHS = DAG.getNode(ISD::ADD, dl, LHS.getValueType(), LHS, RHS);
|
LHS = DAG.getNode(ISD::ADD, dl, LHS.getValueType(), LHS, RHS);
|
||||||
return DAG.getNode(ISD::BIT_CONVERT, dl, Op.getValueType(), LHS);
|
return DAG.getNode(ISD::BIT_CONVERT, dl, Op.getValueType(), LHS);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return SDValue();
|
return SDValue();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user