Skip to content

Commit 840c81c

Browse files
garthleiaadeshps-mcw
authored andcommitted
[RISCV] Remove unused argument check (NFC) (llvm#168313)
The index == 0 scenerio has already been handled by the early return, so only the upper half scenerio is relevant here.
1 parent af25518 commit 840c81c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2535,7 +2535,7 @@ bool RISCVTargetLowering::isExtractSubvectorCheap(EVT ResVT, EVT SrcVT,
25352535
// TODO: For sizes which aren't multiples of VLEN sizes, this may not be
25362536
// a cheap extract. However, this case is important in practice for
25372537
// shuffled extracts of longer vectors. How resolve?
2538-
return (ResElts * 2) == SrcElts && (Index == 0 || Index == ResElts);
2538+
return (ResElts * 2) == SrcElts && Index == ResElts;
25392539
}
25402540

25412541
MVT RISCVTargetLowering::getRegisterTypeForCallingConv(LLVMContext &Context,

0 commit comments

Comments
 (0)