Skip to content

Commit f92136d

Browse files
committed
rename some variable
1 parent f561b34 commit f92136d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15588,46 +15588,46 @@ SDValue PPCTargetLowering::DAGCombineExtBoolTrunc(SDNode *N,
1558815588
}
1558915589

1559015590
// The function check a i128 load can convert to 16i8 load for Vcmpequb.
15591-
static bool canConvertToVcmpequb(SDValue &LHS, SDValue RHS) {
15591+
static bool canConvertToVcmpequb(SDValue &LHS, SDValue &RHS) {
1559215592

15593-
auto isValidForConvert = [](SDValue &Op) {
15594-
if (Op.getOpcode() == ISD::Constant)
15593+
auto isValidForConvert = [](SDValue &Oprand) {
15594+
if (Oprand.getOpcode() == ISD::Constant)
1559515595
return true;
1559615596

15597-
if (Op.getOpcode() != ISD::LOAD)
15597+
if (Oprand.getOpcode() != ISD::LOAD)
1559815598
return false;
1559915599

15600-
if (!Op.hasOneUse())
15600+
if (!Oprand.hasOneUse())
1560115601
return false;
1560215602

15603-
if (Op.getValueType() != MVT::i128)
15603+
if (Oprand.getValueType() != MVT::i128)
1560415604
return false;
1560515605

15606-
auto *LoadOp = dyn_cast<LoadSDNode>(Op);
15607-
if (!LoadOp)
15606+
auto *LoadNode = dyn_cast<LoadSDNode>(Oprand);
15607+
if (!LoadNode)
1560815608
return false;
1560915609

1561015610
// If memory operation is volatile, do not perform any
1561115611
// optimization or transformation. Volatile operations must be preserved
1561215612
// as written to ensure correct program behavior, so we return an empty
1561315613
// SDValue to indicate no action.
1561415614

15615-
if (LoadOp->isVolatile())
15615+
if (LoadNode->isVolatile())
1561615616
return false;
1561715617

1561815618
// Only combine loads if both use the unindexed addressing mode.
1561915619
// PowerPC AltiVec/VMX does not support vector loads or stores with
1562015620
// pre/post-increment addressing. Indexed modes may imply implicit
1562115621
// pointer updates, which are not compatible with AltiVec vector
1562215622
// instructions.
15623-
if (LoadOp->getAddressingMode() != ISD::UNINDEXED)
15623+
if (LoadNode->getAddressingMode() != ISD::UNINDEXED)
1562415624
return false;
1562515625

1562615626
// Only combine loads if both are non-extending loads
1562715627
// (ISD::NON_EXTLOAD). Extending loads (such as ISD::ZEXTLOAD or
1562815628
// ISD::SEXTLOAD) perform zero or sign extension, which may change the
1562915629
// loaded value's semantics and are not compatible with vector loads.
15630-
if (LoadOp->getExtensionType() != ISD::NON_EXTLOAD)
15630+
if (LoadNode->getExtensionType() != ISD::NON_EXTLOAD)
1563115631
return false;
1563215632

1563315633
return true;
@@ -15645,13 +15645,13 @@ SDValue convertTwoLoadsAndCmpToVCMPEQUB(SelectionDAG &DAG, SDNode *N,
1564515645
assert(CC == ISD::SETNE ||
1564615646
CC == ISD::SETEQ && "CC mus be ISD::SETNE or ISD::SETEQ");
1564715647

15648-
auto getV16i8Load = [&](const SDValue &Op) {
15649-
if (Op.getOpcode() == ISD::Constant)
15650-
return DAG.getBitcast(MVT::v16i8, Op);
15648+
auto getV16i8Load = [&](const SDValue &Oprand) {
15649+
if (Oprand.getOpcode() == ISD::Constant)
15650+
return DAG.getBitcast(MVT::v16i8, Oprand);
1565115651

15652-
assert(Op.getOpcode() == ISD::LOAD && "Must be LoadSDNode here.");
15652+
assert(Oprand.getOpcode() == ISD::LOAD && "Must be LoadSDNode here.");
1565315653

15654-
auto *LoadNode = dyn_cast<LoadSDNode>(Op);
15654+
auto *LoadNode = dyn_cast<LoadSDNode>(Oprand);
1565515655
return DAG.getLoad(MVT::v16i8, DL, LoadNode->getChain(),
1565615656
LoadNode->getBasePtr(), LoadNode->getMemOperand());
1565715657
};

0 commit comments

Comments
 (0)