Skip to content

Commit 03df8d1

Browse files
jaewiefacebook-github-bot
authored andcommittedMar 14, 2025·
Back out "Configs for different initial region selection BC budget and inline callee region BC budget"
Summary: Original commit changeset: c907197edb3d Original Phabricator Diff: D70253888 Reviewed By: mdko Differential Revision: D71201663 fbshipit-source-id: 3872710a8c4c431abe84589d165bc1ec7044b796
1 parent 681590f commit 03df8d1

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed
 

‎hphp/doc/configs.specification

-2
Original file line numberDiff line numberDiff line change
@@ -1648,8 +1648,6 @@ The format can be found in hphp/tools/configs/generate_configs.rs
16481648
- int64_t Jit.MaxRequestTranslationTime = -1, UNKNOWN
16491649
- uint32_t Jit.MaxRegionInstrs = 3000, UNKNOWN
16501650
- uint32_t Jit.MaxLiveRegionInstrs = 50, UNKNOWN
1651-
- uint32_t Jit.MaxInitialRegionInstrs = 3000, UNKNOWN
1652-
- uint32_t Jit.MaxInlineRegionInstrs = 3000, UNKNOWN
16531651
- uint32_t Jit.MaxAwaitAllUnroll = 8, UNKNOWN
16541652
- bool Jit.ProfileWarmupRequests = false, UNKNOWN
16551653
- uint32_t Jit.ProfileRequests, UNKNOWN

‎hphp/runtime/vm/jit/inlining-decider.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ irgen::RegionAndLazyUnit selectCalleeRegion(const irgen::IRGS& irgs,
811811

812812
if (profData()) {
813813
auto region = selectCalleeCFG(callerSk, entry, ctxType, inputTypes,
814-
Cfg::Jit::MaxInlineRegionInstrs, annotationsPtr);
814+
Cfg::Jit::MaxRegionInstrs, annotationsPtr);
815815
if (region) return {callerSk, region};
816816
// Special case: even if we don't have prof data for this func, if
817817
// it takes no arguments and returns a constant, it might be a
@@ -826,7 +826,7 @@ irgen::RegionAndLazyUnit selectCalleeRegion(const irgen::IRGS& irgs,
826826
}
827827

828828
auto region = selectCalleeTracelet(entry, ctxType, inputTypes,
829-
Cfg::Jit::MaxInlineRegionInstrs);
829+
Cfg::Jit::MaxRegionInstrs);
830830
return {callerSk, region};
831831
}
832832

‎hphp/runtime/vm/jit/region-selection.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ RegionDescPtr selectRegion(const RegionContext& context,
920920
case RegionMode::Tracelet: {
921921
auto const maxBCInstrs = kind == TransKind::Live
922922
? Cfg::Jit::MaxLiveRegionInstrs
923-
: Cfg::Jit::MaxInitialRegionInstrs;
923+
: Cfg::Jit::MaxRegionInstrs;
924924
return selectTracelet(context, kind, maxBCInstrs);
925925
}
926926
}
@@ -941,7 +941,7 @@ RegionDescPtr selectRegion(const RegionContext& context,
941941
if (region) {
942942
FTRACE(3, "{}", show(*region));
943943
always_assert(
944-
region->instrSize() <= std::max(Cfg::Jit::MaxInitialRegionInstrs,
944+
region->instrSize() <= std::max(Cfg::Jit::MaxRegionInstrs,
945945
Cfg::Jit::MaxLiveRegionInstrs)
946946
);
947947
} else {
@@ -963,7 +963,7 @@ RegionDescPtr selectHotRegion(TransID transId) {
963963
ctx.cfg = &cfg;
964964
ctx.profData = profData;
965965
ctx.entries = {transId};
966-
ctx.maxBCInstrs = Cfg::Jit::MaxInitialRegionInstrs;
966+
ctx.maxBCInstrs = Cfg::Jit::MaxRegionInstrs;
967967
switch (pgoRegionMode(func)) {
968968
case PGORegionMode::Hottrace:
969969
region = selectHotTrace(ctx);
@@ -994,7 +994,7 @@ RegionDescPtr selectHotRegion(TransID transId) {
994994
dotFileName, region ? show(*region) : std::string("empty region"));
995995
}
996996

997-
always_assert(region->instrSize() <= Cfg::Jit::MaxInitialRegionInstrs);
997+
always_assert(region->instrSize() <= Cfg::Jit::MaxRegionInstrs);
998998

999999
if (region->empty()) return nullptr;
10001000
return region;

‎hphp/runtime/vm/jit/regionize-func.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ RegionVec regionizeFunc(const Func* func, std::string& transCFGAnnot) {
389389
ctx.cfg = &cfg;
390390
ctx.profData = profData;
391391
ctx.entries = {newHead};
392-
ctx.maxBCInstrs = Cfg::Jit::MaxInitialRegionInstrs;
392+
ctx.maxBCInstrs = Cfg::Jit::MaxRegionInstrs;
393393
switch (regionMode) {
394394
case PGORegionMode::Hottrace:
395395
region = selectHotTrace(ctx);
-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
-vEval.JitMaxRegionInstrs=2
2-
-vEval.JitMaxInitialRegionInstrs=2

0 commit comments

Comments
 (0)
Please sign in to comment.