@@ -768,20 +768,20 @@ GenTree* Lowering::LowerSwitch(GenTree* node)
768
768
// NOTE: this method deliberately does not update the call arg table. It must only
769
769
// be used by NewPutArg and LowerArg; these functions are responsible for updating
770
770
// the call arg table as necessary.
771
- void Lowering::ReplaceArgWithPutArgOrCopy (GenTree** argSlot, GenTree* putArgOrCopy )
771
+ void Lowering::ReplaceArgWithPutArgOrBitcast (GenTree** argSlot, GenTree* putArgOrBitcast )
772
772
{
773
773
assert (argSlot != nullptr );
774
774
assert (*argSlot != nullptr );
775
- assert (putArgOrCopy ->OperIsPutArg () || putArgOrCopy ->OperIs (GT_BITCAST));
775
+ assert (putArgOrBitcast ->OperIsPutArg () || putArgOrBitcast ->OperIs (GT_BITCAST));
776
776
777
777
GenTree* arg = *argSlot;
778
778
779
779
// Replace the argument with the putarg/copy
780
- *argSlot = putArgOrCopy ;
781
- putArgOrCopy ->gtOp .gtOp1 = arg;
780
+ *argSlot = putArgOrBitcast ;
781
+ putArgOrBitcast ->gtOp .gtOp1 = arg;
782
782
783
783
// Insert the putarg/copy into the block
784
- BlockRange ().InsertAfter (arg, putArgOrCopy );
784
+ BlockRange ().InsertAfter (arg, putArgOrBitcast );
785
785
}
786
786
787
787
// ------------------------------------------------------------------------
@@ -1009,7 +1009,7 @@ GenTreePtr Lowering::NewPutArg(GenTreeCall* call, GenTreePtr arg, fgArgTabEntryP
1009
1009
fieldListPtr->gtOp .gtOp1 , (ctr == 0 ) ? info->regNum : info->otherRegNum );
1010
1010
1011
1011
// Splice in the new GT_PUTARG_REG node in the GT_FIELD_LIST
1012
- ReplaceArgWithPutArgOrCopy (&fieldListPtr->gtOp .gtOp1 , newOper);
1012
+ ReplaceArgWithPutArgOrBitcast (&fieldListPtr->gtOp .gtOp1 , newOper);
1013
1013
1014
1014
// Initialize all the gtRegNum's since the list won't be traversed in an LIR traversal.
1015
1015
fieldListPtr->gtRegNum = REG_NA;
@@ -1046,7 +1046,7 @@ GenTreePtr Lowering::NewPutArg(GenTreeCall* call, GenTreePtr arg, fgArgTabEntryP
1046
1046
GenTreePtr newOper = comp->gtNewPutArgReg (curTyp, curOp, argReg);
1047
1047
1048
1048
// Splice in the new GT_PUTARG_REG node in the GT_FIELD_LIST
1049
- ReplaceArgWithPutArgOrCopy (&fieldListPtr->gtOp .gtOp1 , newOper);
1049
+ ReplaceArgWithPutArgOrBitcast (&fieldListPtr->gtOp .gtOp1 , newOper);
1050
1050
1051
1051
// Update argReg for the next putarg_reg (if any)
1052
1052
argReg = genRegArgNext (argReg);
@@ -1304,7 +1304,8 @@ void Lowering::LowerArg(GenTreeCall* call, GenTreePtr* ppArg)
1304
1304
GenTreePtr putArg = NewPutArg (call, fieldList, info, type);
1305
1305
putArg->gtRegNum = info->regNum ;
1306
1306
1307
- // We can't call ReplaceArgWithPutArgOrCopy here because it presumes that we are keeping the original arg.
1307
+ // We can't call ReplaceArgWithPutArgOrBitcast here because it presumes that we are keeping the original
1308
+ // arg.
1308
1309
BlockRange ().InsertBefore (arg, fieldList, putArg);
1309
1310
BlockRange ().Remove (arg);
1310
1311
*ppArg = putArg;
@@ -1344,7 +1345,7 @@ void Lowering::LowerArg(GenTreeCall* call, GenTreePtr* ppArg)
1344
1345
if (arg != intArg)
1345
1346
{
1346
1347
info->node = intArg;
1347
- ReplaceArgWithPutArgOrCopy (ppArg, intArg);
1348
+ ReplaceArgWithPutArgOrBitcast (ppArg, intArg);
1348
1349
1349
1350
// update local variable.
1350
1351
arg = intArg;
@@ -1362,7 +1363,7 @@ void Lowering::LowerArg(GenTreeCall* call, GenTreePtr* ppArg)
1362
1363
// If an extra node is returned, splice it in the right place in the tree.
1363
1364
if (arg != putArg)
1364
1365
{
1365
- ReplaceArgWithPutArgOrCopy (ppArg, putArg);
1366
+ ReplaceArgWithPutArgOrBitcast (ppArg, putArg);
1366
1367
}
1367
1368
}
1368
1369
}
@@ -1385,7 +1386,7 @@ GenTreePtr Lowering::LowerFloatArg(GenTreePtr arg, fgArgTabEntryPtr info, unsign
1385
1386
GenTreePtr intNode = LowerFloatArg (node, info, fieldNum);
1386
1387
if (intNode != nullptr )
1387
1388
{
1388
- ReplaceArgWithPutArgOrCopy (list->pCurrent (), intNode);
1389
+ ReplaceArgWithPutArgOrBitcast (list->pCurrent (), intNode);
1389
1390
list->ChangeType (intNode->TypeGet ());
1390
1391
}
1391
1392
}
0 commit comments