@@ -76,13 +76,13 @@ SDValue SystemZSelectionDAGInfo::EmitTargetCodeForMemcpy(
76
76
// MVI, MVHHI, MVHI and MVGHI respectively.
77
77
static SDValue memsetStore (SelectionDAG &DAG, const SDLoc &DL, SDValue Chain,
78
78
SDValue Dst, uint64_t ByteVal, uint64_t Size,
79
- unsigned Align, MachinePointerInfo DstPtrInfo) {
79
+ Align Alignment , MachinePointerInfo DstPtrInfo) {
80
80
uint64_t StoreVal = ByteVal;
81
81
for (unsigned I = 1 ; I < Size; ++I)
82
82
StoreVal |= ByteVal << (I * 8 );
83
83
return DAG.getStore (
84
84
Chain, DL, DAG.getConstant (StoreVal, DL, MVT::getIntegerVT (Size * 8 )),
85
- Dst, DstPtrInfo, Align );
85
+ Dst, DstPtrInfo, Alignment );
86
86
}
87
87
88
88
SDValue SystemZSelectionDAGInfo::EmitTargetCodeForMemset (
@@ -111,15 +111,15 @@ SDValue SystemZSelectionDAGInfo::EmitTargetCodeForMemset(
111
111
unsigned Size1 = Bytes == 16 ? 8 : 1 << findLastSet (Bytes);
112
112
unsigned Size2 = Bytes - Size1;
113
113
SDValue Chain1 = memsetStore (DAG, DL, Chain, Dst, ByteVal, Size1,
114
- Alignment. value () , DstPtrInfo);
114
+ Alignment, DstPtrInfo);
115
115
if (Size2 == 0 )
116
116
return Chain1;
117
117
Dst = DAG.getNode (ISD::ADD, DL, PtrVT, Dst,
118
118
DAG.getConstant (Size1, DL, PtrVT));
119
119
DstPtrInfo = DstPtrInfo.getWithOffset (Size1);
120
- SDValue Chain2 = memsetStore (
121
- DAG, DL, Chain, Dst, ByteVal, Size2,
122
- std::min (( unsigned ) Alignment. value (), Size1), DstPtrInfo);
120
+ SDValue Chain2 =
121
+ memsetStore ( DAG, DL, Chain, Dst, ByteVal, Size2,
122
+ std::min (Alignment, Align ( Size1) ), DstPtrInfo);
123
123
return DAG.getNode (ISD::TokenFactor, DL, MVT::Other, Chain1, Chain2);
124
124
}
125
125
} else {
0 commit comments