Skip to content

Commit 43939b9

Browse files
- Remove unused references to FORM_STRIDED_TUPLE
- Removed switch from getRegAllocationHints
1 parent ebc97b7 commit 43939b9

File tree

5 files changed

+3
-32
lines changed

5 files changed

+3
-32
lines changed

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,6 @@ class AArch64DAGToDAGISel : public SelectionDAGISel {
504504

505505
bool SelectAllActivePredicate(SDValue N);
506506
bool SelectAnyPredicate(SDValue N);
507-
508-
void SelectFormTuplePseudo(SDNode *N);
509507
};
510508

511509
class AArch64DAGToDAGISelLegacy : public SelectionDAGISelLegacy {

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,8 +2808,6 @@ const char *AArch64TargetLowering::getTargetNodeName(unsigned Opcode) const {
28082808
MAKE_CASE(AArch64ISD::FMUL_PRED)
28092809
MAKE_CASE(AArch64ISD::FSUB_PRED)
28102810
MAKE_CASE(AArch64ISD::RDSVL)
2811-
MAKE_CASE(AArch64ISD::FORM_STRIDED_TUPLE_X2)
2812-
MAKE_CASE(AArch64ISD::FORM_STRIDED_TUPLE_X4)
28132811
MAKE_CASE(AArch64ISD::BIC)
28142812
MAKE_CASE(AArch64ISD::CBZ)
28152813
MAKE_CASE(AArch64ISD::CBNZ)

llvm/lib/Target/AArch64/AArch64ISelLowering.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,6 @@ enum NodeType : unsigned {
478478
SME_ZA_LDR,
479479
SME_ZA_STR,
480480

481-
FORM_STRIDED_TUPLE_X2,
482-
FORM_STRIDED_TUPLE_X4,
483-
484481
// NEON Load/Store with post-increment base updates
485482
LD2post = ISD::FIRST_TARGET_MEMORY_OPCODE,
486483
LD3post,

llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,26 +1144,14 @@ bool AArch64RegisterInfo::getRegAllocationHints(
11441144
if (!VRM->hasPhys(FirstLoadVirtReg))
11451145
continue;
11461146

1147-
unsigned SubRegIdx = 0;
1147+
int64_t SubRegIdx = -1;
11481148
MCRegister FirstLoadPhysReg = VRM->getPhys(FirstLoadVirtReg);
11491149

11501150
// The subreg number is used to access the correct unit of the
11511151
// strided register found in the map above.
1152-
switch (MI.getOperand(1).getSubReg()) {
1153-
case AArch64::zsub0:
1154-
break;
1155-
case AArch64::zsub1:
1156-
SubRegIdx = 1;
1157-
break;
1158-
case AArch64::zsub2:
1159-
SubRegIdx = 2;
1160-
break;
1161-
case AArch64::zsub3:
1162-
SubRegIdx = 3;
1163-
break;
1164-
default:
1152+
SubRegIdx = MI.getOperand(1).getSubReg() - AArch64::zsub0;
1153+
if (SubRegIdx < 0 || SubRegIdx > 3)
11651154
continue;
1166-
}
11671155

11681156
SmallVector<Register, 4> RegUnits;
11691157
for (MCRegUnit Unit : TRI->regunits(FirstLoadPhysReg))

llvm/lib/Target/AArch64/AArch64SMEInstrInfo.td

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ def AArch64_save_zt : SDNode<"AArch64ISD::SAVE_ZT", SDTypeProfile<0, 2,
2929
[SDTCisInt<0>, SDTCisPtrTy<1>]>,
3030
[SDNPHasChain, SDNPSideEffect, SDNPMayStore]>;
3131

32-
def SDT_FORM_STRIDED_TUPLE_X2 : SDTypeProfile<2, 2,
33-
[SDTCisVec<0>, SDTCisSameAs<0, 1>,
34-
SDTCisSameAs<0, 2>, SDTCisSameAs<0, 3>]>;
35-
36-
def SDT_FORM_STRIDED_TUPLE_X4 : SDTypeProfile<4, 4,
37-
[SDTCisVec<0>, SDTCisSameAs<0, 1>,
38-
SDTCisSameAs<0, 2>, SDTCisSameAs<0, 3>,
39-
SDTCisSameAs<0, 4>, SDTCisSameAs<0, 5>,
40-
SDTCisSameAs<0, 6>, SDTCisSameAs<0, 7>]>;
41-
4232
def AArch64CoalescerBarrier
4333
: SDNode<"AArch64ISD::COALESCER_BARRIER", SDTypeProfile<1, 1, []>, [SDNPOptInGlue, SDNPOutGlue]>;
4434

0 commit comments

Comments
 (0)