[llvm] 0a5292e - [PowerPC] Remove extraneous ArrayRef (NFC) (#96092)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 13:38:49 PDT 2024
Author: Kazu Hirata
Date: 2024-06-19T13:38:46-07:00
New Revision: 0a5292ebbb393b70dbb46b0a30a64a3b3a2463e1
URL: https://github.com/llvm/llvm-project/commit/0a5292ebbb393b70dbb46b0a30a64a3b3a2463e1
DIFF: https://github.com/llvm/llvm-project/commit/0a5292ebbb393b70dbb46b0a30a64a3b3a2463e1.diff
LOG: [PowerPC] Remove extraneous ArrayRef (NFC) (#96092)
ArrayRef can be implicitly constructed from a C array while inferring
its size.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 12e33ddb8eb53..9e56b8522fa63 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -5608,7 +5608,7 @@ static void prepareIndirectCall(SelectionDAG &DAG, SDValue &Callee,
const SDLoc &dl) {
SDValue MTCTROps[] = {Chain, Callee, Glue};
EVT ReturnTypes[] = {MVT::Other, MVT::Glue};
- Chain = DAG.getNode(PPCISD::MTCTR, dl, ArrayRef(ReturnTypes, 2),
+ Chain = DAG.getNode(PPCISD::MTCTR, dl, ReturnTypes,
ArrayRef(MTCTROps, Glue.getNode() ? 3 : 2));
// The glue is the second value produced.
Glue = Chain.getValue(1);
@@ -10937,10 +10937,10 @@ SDValue PPCTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
case Intrinsic::ppc_mma_disassemble_acc: {
if (Subtarget.isISAFuture()) {
EVT ReturnTypes[] = {MVT::v256i1, MVT::v256i1};
- SDValue WideVec = SDValue(DAG.getMachineNode(PPC::DMXXEXTFDMR512, dl,
- ArrayRef(ReturnTypes, 2),
- Op.getOperand(1)),
- 0);
+ SDValue WideVec =
+ SDValue(DAG.getMachineNode(PPC::DMXXEXTFDMR512, dl, ReturnTypes,
+ Op.getOperand(1)),
+ 0);
SmallVector<SDValue, 4> RetOps;
SDValue Value = SDValue(WideVec.getNode(), 0);
SDValue Value2 = SDValue(WideVec.getNode(), 1);
@@ -11609,7 +11609,7 @@ SDValue PPCTargetLowering::LowerVectorStore(SDValue Op,
if (Subtarget.isISAFuture()) {
EVT ReturnTypes[] = {MVT::v256i1, MVT::v256i1};
MachineSDNode *ExtNode = DAG.getMachineNode(
- PPC::DMXXEXTFDMR512, dl, ArrayRef(ReturnTypes, 2), Op.getOperand(1));
+ PPC::DMXXEXTFDMR512, dl, ReturnTypes, Op.getOperand(1));
Value = SDValue(ExtNode, 0);
Value2 = SDValue(ExtNode, 1);
More information about the llvm-commits
mailing list