File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -18115,17 +18115,17 @@ bool RISCVTargetLowering::isDesirableToCommuteWithShift(
18115
18115
// LD/ST, it can still complete the folding optimization operation performed
18116
18116
// above.
18117
18117
auto isLDST = [&]() {
18118
- bool canOptAwlays = false;
18118
+ bool CanOptAlways = false;
18119
18119
if (N0->getOpcode() == ISD::ADD && !N0->hasOneUse()) {
18120
18120
for (SDNode *Use : N0->uses()) {
18121
18121
// This use is the one we're on right now. Skip it
18122
18122
if (Use == N || Use->getOpcode() == ISD::SELECT)
18123
18123
continue;
18124
18124
if (!isa<StoreSDNode>(Use) && !isa<LoadSDNode>(Use)) {
18125
- canOptAwlays = false;
18125
+ CanOptAlways = false;
18126
18126
break;
18127
18127
}
18128
- canOptAwlays = true;
18128
+ CanOptAlways = true;
18129
18129
}
18130
18130
}
18131
18131
@@ -18136,20 +18136,20 @@ bool RISCVTargetLowering::isDesirableToCommuteWithShift(
18136
18136
if (Use == N0.getNode() || Use->getOpcode() == ISD::SELECT)
18137
18137
continue;
18138
18138
if (!isa<StoreSDNode>(Use) && !isa<LoadSDNode>(Use)) {
18139
- canOptAwlays = false;
18139
+ CanOptAlways = false;
18140
18140
break;
18141
18141
}
18142
- canOptAwlays = true;
18142
+ CanOptAlways = true;
18143
18143
}
18144
18144
}
18145
- return canOptAwlays ;
18145
+ return CanOptAlways ;
18146
18146
};
18147
18147
18148
18148
if (Ty.isScalarInteger() &&
18149
18149
(N0.getOpcode() == ISD::ADD || N0.getOpcode() == ISD::OR)) {
18150
- if (N0.getOpcode() == ISD::ADD && !N0->hasOneUse()) {
18150
+ if (N0.getOpcode() == ISD::ADD && !N0->hasOneUse())
18151
18151
return isLDST();
18152
- }
18152
+
18153
18153
auto *C1 = dyn_cast<ConstantSDNode>(N0->getOperand(1));
18154
18154
auto *C2 = dyn_cast<ConstantSDNode>(N->getOperand(1));
18155
18155
if (C1 && C2) {
You can’t perform that action at this time.
0 commit comments