Skip to content

Commit a01423b

Browse files
committed
Undo the varianble name change
1 parent 4f81c8b commit a01423b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,28 +1224,28 @@ bool LoopInterchangeProfitability::isProfitable(
12241224
RuleOrder[2] = RuleTy::PerInstrOrderCost;
12251225
}
12261226

1227-
std::optional<bool> ShouldInterchange;
1227+
std::optional<bool> shouldInterchange;
12281228
for (RuleTy RT : RuleOrder) {
12291229
switch (RT) {
12301230
case RuleTy::PerLoopCacheAnalysis:
1231-
ShouldInterchange = isProfitablePerLoopCacheAnalysis(CostMap, CC);
1231+
shouldInterchange = isProfitablePerLoopCacheAnalysis(CostMap, CC);
12321232
break;
12331233
case RuleTy::PerInstrOrderCost:
1234-
ShouldInterchange = isProfitablePerInstrOrderCost();
1234+
shouldInterchange = isProfitablePerInstrOrderCost();
12351235
break;
12361236
case RuleTy::ForVectorization:
1237-
ShouldInterchange =
1237+
shouldInterchange =
12381238
isProfitableForVectorization(InnerLoopId, OuterLoopId, DepMatrix);
12391239
break;
12401240
}
12411241

12421242
// If this rule could determine the profitability, don't call subsequent
12431243
// rules.
1244-
if (ShouldInterchange.has_value())
1244+
if (shouldInterchange.has_value())
12451245
break;
12461246
}
12471247

1248-
if (!ShouldInterchange.has_value()) {
1248+
if (!shouldInterchange.has_value()) {
12491249
ORE->emit([&]() {
12501250
return OptimizationRemarkMissed(DEBUG_TYPE, "InterchangeNotProfitable",
12511251
InnerLoop->getStartLoc(),
@@ -1254,7 +1254,7 @@ bool LoopInterchangeProfitability::isProfitable(
12541254
"interchange.";
12551255
});
12561256
return false;
1257-
} else if (!ShouldInterchange.value()) {
1257+
} else if (!shouldInterchange.value()) {
12581258
ORE->emit([&]() {
12591259
return OptimizationRemarkMissed(DEBUG_TYPE, "InterchangeNotProfitable",
12601260
InnerLoop->getStartLoc(),

0 commit comments

Comments
 (0)