Skip to content

Commit 9d1fbbd

Browse files
[SROA][NFC] Remove Unused Parameter in promoteAllocas() (#128382)
Removing it because `Function &F` is not used by `promoteAllocas()`.
1 parent cafad2b commit 9d1fbbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class SROA {
252252
std::pair<bool /*Changed*/, bool /*CFGChanged*/> runOnAlloca(AllocaInst &AI);
253253
void clobberUse(Use &U);
254254
bool deleteDeadInstructions(SmallPtrSetImpl<AllocaInst *> &DeletedAllocas);
255-
bool promoteAllocas(Function &F);
255+
bool promoteAllocas();
256256
};
257257

258258
} // end anonymous namespace
@@ -5693,7 +5693,7 @@ bool SROA::deleteDeadInstructions(
56935693
/// This attempts to promote whatever allocas have been identified as viable in
56945694
/// the PromotableAllocas list. If that list is empty, there is nothing to do.
56955695
/// This function returns whether any promotion occurred.
5696-
bool SROA::promoteAllocas(Function &F) {
5696+
bool SROA::promoteAllocas() {
56975697
if (PromotableAllocas.empty())
56985698
return false;
56995699

@@ -5750,7 +5750,7 @@ std::pair<bool /*Changed*/, bool /*CFGChanged*/> SROA::runSROA(Function &F) {
57505750
}
57515751
}
57525752

5753-
Changed |= promoteAllocas(F);
5753+
Changed |= promoteAllocas();
57545754

57555755
Worklist = PostPromotionWorklist;
57565756
PostPromotionWorklist.clear();

0 commit comments

Comments
 (0)