mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
reduce indentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -86,11 +86,12 @@ static Value *FindScalarElement(Value *V, unsigned EltNo) {
|
|||||||
|
|
||||||
if (isa<UndefValue>(V))
|
if (isa<UndefValue>(V))
|
||||||
return UndefValue::get(PTy->getElementType());
|
return UndefValue::get(PTy->getElementType());
|
||||||
else if (isa<ConstantAggregateZero>(V))
|
if (isa<ConstantAggregateZero>(V))
|
||||||
return Constant::getNullValue(PTy->getElementType());
|
return Constant::getNullValue(PTy->getElementType());
|
||||||
else if (ConstantVector *CP = dyn_cast<ConstantVector>(V))
|
if (ConstantVector *CP = dyn_cast<ConstantVector>(V))
|
||||||
return CP->getOperand(EltNo);
|
return CP->getOperand(EltNo);
|
||||||
else if (InsertElementInst *III = dyn_cast<InsertElementInst>(V)) {
|
|
||||||
|
if (InsertElementInst *III = dyn_cast<InsertElementInst>(V)) {
|
||||||
// If this is an insert to a variable element, we don't know what it is.
|
// If this is an insert to a variable element, we don't know what it is.
|
||||||
if (!isa<ConstantInt>(III->getOperand(2)))
|
if (!isa<ConstantInt>(III->getOperand(2)))
|
||||||
return 0;
|
return 0;
|
||||||
@@ -104,7 +105,9 @@ static Value *FindScalarElement(Value *V, unsigned EltNo) {
|
|||||||
// Otherwise, the insertelement doesn't modify the value, recurse on its
|
// Otherwise, the insertelement doesn't modify the value, recurse on its
|
||||||
// vector input.
|
// vector input.
|
||||||
return FindScalarElement(III->getOperand(0), EltNo);
|
return FindScalarElement(III->getOperand(0), EltNo);
|
||||||
} else if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(V)) {
|
}
|
||||||
|
|
||||||
|
if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(V)) {
|
||||||
unsigned LHSWidth =
|
unsigned LHSWidth =
|
||||||
cast<VectorType>(SVI->getOperand(0)->getType())->getNumElements();
|
cast<VectorType>(SVI->getOperand(0)->getType())->getNumElements();
|
||||||
unsigned InEl = getShuffleMask(SVI)[EltNo];
|
unsigned InEl = getShuffleMask(SVI)[EltNo];
|
||||||
|
Reference in New Issue
Block a user