Skip to content

Commit 7ceb091

Browse files
committed
Drop PtrOperandNo, since it is redundant
1 parent 2c05c35 commit 7ceb091

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,8 +2753,7 @@ bool RISCVTTIImpl::getTgtMemIntrinsic(IntrinsicInst *Inst,
27532753
if (auto *TarExtTy =
27542754
dyn_cast<TargetExtType>(II->getArgOperand(0)->getType()))
27552755
return TarExtTy->getIntParameter(0);
2756-
if (IsWrite)
2757-
return PtrOperandNo;
2756+
27582757
return 1;
27592758
};
27602759

0 commit comments

Comments
 (0)