forked from OSchip/llvm-project
[X86] X86TargetTransformInfo - remove unnecessary if-else after early exit. NFCI.
(style) Break the if-else chain as they all return.
This commit is contained in:
parent
ea17b15f2d
commit
4ab7c0d3fa
|
@ -259,11 +259,10 @@ InstructionCost X86TTIImpl::getArithmeticInstrCost(
|
|||
return getArithmeticInstrCost(Instruction::LShr, Ty, CostKind, Op1Info,
|
||||
Op2Info, TargetTransformInfo::OP_None,
|
||||
TargetTransformInfo::OP_None);
|
||||
|
||||
else // UREM
|
||||
return getArithmeticInstrCost(Instruction::And, Ty, CostKind, Op1Info,
|
||||
Op2Info, TargetTransformInfo::OP_None,
|
||||
TargetTransformInfo::OP_None);
|
||||
// UREM
|
||||
return getArithmeticInstrCost(Instruction::And, Ty, CostKind, Op1Info,
|
||||
Op2Info, TargetTransformInfo::OP_None,
|
||||
TargetTransformInfo::OP_None);
|
||||
}
|
||||
|
||||
static const CostTblEntry GLMCostTable[] = {
|
||||
|
@ -4814,7 +4813,7 @@ bool X86TTIImpl::isLegalNTStore(Type *DataType, Align Alignment) {
|
|||
// loads require AVX2).
|
||||
if (DataSize == 32)
|
||||
return ST->hasAVX();
|
||||
else if (DataSize == 16)
|
||||
if (DataSize == 16)
|
||||
return ST->hasSSE1();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue