Skip to content

Commit e8877b2

Browse files
committed
[X86] getGatherScatterOpCost- remove unnecessary extra brackets. NFC.
1 parent 7cdd53d commit e8877b2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/lib/Target/X86/X86TargetTransformInfo.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5865,14 +5865,14 @@ InstructionCost X86TTIImpl::getGatherScatterOpCost(
58655865
unsigned Opcode, Type *SrcVTy, const Value *Ptr, bool VariableMask,
58665866
Align Alignment, TTI::TargetCostKind CostKind,
58675867
const Instruction *I = nullptr) {
5868-
if (((Opcode == Instruction::Load &&
5869-
(!isLegalMaskedGather(SrcVTy, Align(Alignment)) ||
5870-
forceScalarizeMaskedGather(cast<VectorType>(SrcVTy),
5871-
Align(Alignment)))) ||
5872-
(Opcode == Instruction::Store &&
5873-
(!isLegalMaskedScatter(SrcVTy, Align(Alignment)) ||
5874-
forceScalarizeMaskedScatter(cast<VectorType>(SrcVTy),
5875-
Align(Alignment))))))
5868+
if ((Opcode == Instruction::Load &&
5869+
(!isLegalMaskedGather(SrcVTy, Align(Alignment)) ||
5870+
forceScalarizeMaskedGather(cast<VectorType>(SrcVTy),
5871+
Align(Alignment)))) ||
5872+
(Opcode == Instruction::Store &&
5873+
(!isLegalMaskedScatter(SrcVTy, Align(Alignment)) ||
5874+
forceScalarizeMaskedScatter(cast<VectorType>(SrcVTy),
5875+
Align(Alignment)))))
58765876
return BaseT::getGatherScatterOpCost(Opcode, SrcVTy, Ptr, VariableMask,
58775877
Alignment, CostKind, I);
58785878

0 commit comments

Comments
 (0)