Skip to content

Commit 41aa0d4

Browse files
authored
[MC] Reduce size of MCLEBFragment (NFC) (#75050)
This recovers more of the max-rss regression introduced by https://reviews.llvm.org/D157657. This is an about 1.2% max-rss improvement for the LTO link stage with debuginfo on CTMark.
1 parent a9af317 commit 41aa0d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/MC/MCFragment.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ class MCOrgFragment : public MCFragment {
428428
}
429429
};
430430

431-
class MCLEBFragment final : public MCEncodedFragmentWithFixups<10, 1> {
431+
class MCLEBFragment final : public MCEncodedFragmentWithFixups<8, 0> {
432432
/// True if this is a sleb128, false if uleb128.
433433
bool IsSigned;
434434

@@ -437,7 +437,7 @@ class MCLEBFragment final : public MCEncodedFragmentWithFixups<10, 1> {
437437

438438
public:
439439
MCLEBFragment(const MCExpr &Value, bool IsSigned, MCSection *Sec = nullptr)
440-
: MCEncodedFragmentWithFixups<10, 1>(FT_LEB, false, Sec),
440+
: MCEncodedFragmentWithFixups<8, 0>(FT_LEB, false, Sec),
441441
IsSigned(IsSigned), Value(&Value) {
442442
getContents().push_back(0);
443443
}

0 commit comments

Comments
 (0)