https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/81442
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 converted_to_draft
https://github.com/llvm/llvm-project/pull/87600
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/87600
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/87600
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/83769
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
minglotus-6 wrote:
Close this. Going to update in https://github.com/llvm/llvm-project/pull/81442
https://github.com/llvm/llvm-project/pull/83769
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mai
https://github.com/minglotus-6 closed
https://github.com/llvm/llvm-project/pull/83769
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 created
https://github.com/llvm/llvm-project/pull/79233
Test Plan: n/a for NFC
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commi
https://github.com/minglotus-6 created
https://github.com/llvm/llvm-project/pull/79234
- This is the part3 of type profiling work, and described in
https://github.com/llvm/llvm-project/pull/79233.
- The pull request depens on part 2 which introduces the new value type
(https://github.com/llvm/
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79234
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
minglotus-6 wrote:
A precommit test case is in https://github.com/llvm/llvm-project/pull/79233, to
showcase the diff clearer.
https://github.com/llvm/llvm-project/pull/79234
___
llvm-branch-commits mailing list
llvm-
https://github.com/minglotus-6 updated
https://github.com/llvm/llvm-project/pull/79234
>From c3bbc12fdedc5399202b295ac6a8db7d29ac0662 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Tue, 23 Jan 2024 16:49:12 -0800
Subject: [PATCH] fix test failure
Created using spr 1.3.4
---
llvm/test/Bitcode/
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79234
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79234
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79234
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 ready_for_review
https://github.com/llvm/llvm-project/pull/79233
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
minglotus-6 wrote:
Hi,
Sorry for the message but I'm about to re-create a new PR for review with
shorter title name, so that branch name is shorter.
I get a message that the length branch name (thereby length file names)
causes some build-bot failures on Windows where there is a 256-chara
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79363
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 closed
https://github.com/llvm/llvm-project/pull/79233
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 created
https://github.com/llvm/llvm-project/pull/79363
None
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
minglotus-6 wrote:
Abandon this in favor of https://github.com/llvm/llvm-project/pull/79363 (same
content with shorter branch name, otherwise windows build bot might fail due to
length filename).
https://github.com/llvm/llvm-project/pull/79233
___
ll
https://github.com/minglotus-6 updated
https://github.com/llvm/llvm-project/pull/79363
>From 050c3889c3327ecec4add706fc7d593caa32bdb6 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Wed, 24 Jan 2024 13:46:47 -0800
Subject: [PATCH] polish test with profile-summary information
Created using spr 1
https://github.com/minglotus-6 created
https://github.com/llvm/llvm-project/pull/79381
None
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79381
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79381
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
minglotus-6 wrote:
I'll abandon this pr in favor of
https://github.com/llvm/llvm-project/pull/79381 (which has a shorter branch
name). Going to delete this lengthy branch from `llvm/llvm-project` shortly
after.
Sorry for the noise and inconvenience!
https://github.com/llvm/llvm-project/pull/
https://github.com/minglotus-6 closed
https://github.com/llvm/llvm-project/pull/79234
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 ready_for_review
https://github.com/llvm/llvm-project/pull/79381
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -124,6 +124,28 @@ static bool findRefEdges(ModuleSummaryIndex &Index, const
User *CurUser,
Worklist.push_back(Operand);
}
}
+
+ const Instruction *I = dyn_cast(CurUser);
+ if (I) {
+uint32_t ActualNumValueData = 0;
+uint64_t TotalCount = 0;
+// 2
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79381
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79381
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79381
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 updated
https://github.com/llvm/llvm-project/pull/79381
>From d4caa0997799b712edb11d90c5be79d0aab3c312 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Thu, 25 Jan 2024 13:59:03 -0800
Subject: [PATCH] Introduce an opton to control the number of vtables to
annotate
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79381
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79381
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 updated
https://github.com/llvm/llvm-project/pull/79381
>From d4caa0997799b712edb11d90c5be79d0aab3c312 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Thu, 25 Jan 2024 13:59:03 -0800
Subject: [PATCH 1/2] Introduce an opton to control the number of vtables to
annot
https://github.com/minglotus-6 edited
https://github.com/llvm/llvm-project/pull/79381
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/minglotus-6 updated
https://github.com/llvm/llvm-project/pull/79381
>From d4caa0997799b712edb11d90c5be79d0aab3c312 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Thu, 25 Jan 2024 13:59:03 -0800
Subject: [PATCH 1/3] Introduce an opton to control the number of vtables to
annot
@@ -199,14 +199,23 @@ class ModuleBitcodeWriterBase : public BitcodeWriterBase {
for (const auto &GUIDSummaryLists : *Index)
// Examine all summaries for this GUID.
for (auto &Summary : GUIDSummaryLists.second.SummaryList)
-if (auto FS = dyn_cast(Summary
@@ -1285,46 +1285,44 @@ void annotateValueSite(Module &M, Instruction &Inst,
Inst.setMetadata(LLVMContext::MD_prof, MDNode::get(Ctx, Vals));
}
-bool getValueProfDataFromInst(const Instruction &Inst,
- InstrProfValueKind ValueKind,
-
@@ -124,6 +126,24 @@ static bool findRefEdges(ModuleSummaryIndex &Index, const
User *CurUser,
Worklist.push_back(Operand);
}
}
+
+ const Instruction *I = dyn_cast(CurUser);
+ if (I) {
+uint32_t ActualNumValueData = 0;
+uint64_t TotalCount = 0;
+// M
@@ -129,15 +131,11 @@ static bool findRefEdges(ModuleSummaryIndex &Index, const
User *CurUser,
if (I) {
uint32_t ActualNumValueData = 0;
uint64_t TotalCount = 0;
-// 24 is the maximum number of values preserved for one instrumented site,
-// defined by INSTR_
https://github.com/minglotus-6 updated
https://github.com/llvm/llvm-project/pull/79381
>From d4caa0997799b712edb11d90c5be79d0aab3c312 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Thu, 25 Jan 2024 13:59:03 -0800
Subject: [PATCH 1/4] Introduce an opton to control the number of vtables to
annot
@@ -1285,46 +1285,44 @@ void annotateValueSite(Module &M, Instruction &Inst,
Inst.setMetadata(LLVMContext::MD_prof, MDNode::get(Ctx, Vals));
}
-bool getValueProfDataFromInst(const Instruction &Inst,
- InstrProfValueKind ValueKind,
-
https://github.com/mingmingl-llvm ready_for_review
https://github.com/llvm/llvm-project/pull/125993
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
mingmingl-llvm wrote:
cc @Colibrow fyi
https://github.com/llvm/llvm-project/pull/125993
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/125993
>From 169486b930c12eb7521fe7ce3c3e6f360824af22 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Wed, 5 Feb 2025 18:46:36 -0800
Subject: [PATCH 1/2] [nfc]asm printer jump table
---
llvm/include/llvm/CodeGe
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/125993
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/125993
>From 169486b930c12eb7521fe7ce3c3e6f360824af22 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Wed, 5 Feb 2025 18:46:36 -0800
Subject: [PATCH 1/3] [nfc]asm printer jump table
---
llvm/include/llvm/CodeGe
https://github.com/mingmingl-llvm created
https://github.com/llvm/llvm-project/pull/126018
This is a follow-up patch of https://github.com/llvm/llvm-project/pull/125993
to port jump table partitions for aarch64.
>From bcd1e154c97f57a6a7c00c5f137c301805eea0c2 Mon Sep 17 00:00:00 2001
From: ming
mingmingl-llvm wrote:
cc @Colibrow
https://github.com/llvm/llvm-project/pull/126018
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/125993
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/125993
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/125993
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/122215
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm created
https://github.com/llvm/llvm-project/pull/122215
None
>From a2a6f9f5a6f7647f85a230241bf3aa39c4bd65d9 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Wed, 8 Jan 2025 16:53:45 -0800
Subject: [PATCH] [AsmPrinter][TargetLowering]Place a hot jump table into
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/122215
>From dd748277dff2b30ed02bfa466eeca7102aa93eb4 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 10 Jan 2025 13:53:08 -0800
Subject: [PATCH 1/2] rely to upstream
---
llvm/include/llvm/CodeGen/MachineF
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/122215
>From dd748277dff2b30ed02bfa466eeca7102aa93eb4 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 10 Jan 2025 13:53:08 -0800
Subject: [PATCH 1/9] rely to upstream
---
llvm/include/llvm/CodeGen/MachineF
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/122215
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -2876,42 +2875,101 @@ void AsmPrinter::emitJumpTableInfo() {
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference32 ||
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference64,
F);
+
+ std::vector JumpTableIndices;
+ if (!TM.Opti
@@ -2876,42 +2875,101 @@ void AsmPrinter::emitJumpTableInfo() {
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference32 ||
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference64,
F);
+
+ std::vector JumpTableIndices;
+ if (!TM.Opti
@@ -2876,42 +2875,101 @@ void AsmPrinter::emitJumpTableInfo() {
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference32 ||
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference64,
F);
+
+ std::vector JumpTableIndices;
+ if (!TM.Opti
@@ -2876,42 +2875,101 @@ void AsmPrinter::emitJumpTableInfo() {
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference32 ||
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference64,
F);
+
+ std::vector JumpTableIndices;
+ if (!TM.Opti
@@ -2876,42 +2875,101 @@ void AsmPrinter::emitJumpTableInfo() {
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference32 ||
MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference64,
F);
+
+ std::vector JumpTableIndices;
+ if (!TM.Opti
https://github.com/mingmingl-llvm commented:
thanks for the feedback! PTAL.
https://github.com/llvm/llvm-project/pull/122215
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-br
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/122215
>From dd748277dff2b30ed02bfa466eeca7102aa93eb4 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 10 Jan 2025 13:53:08 -0800
Subject: [PATCH 1/7] rely to upstream
---
llvm/include/llvm/CodeGen/MachineF
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/122215
>From dd748277dff2b30ed02bfa466eeca7102aa93eb4 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 10 Jan 2025 13:53:08 -0800
Subject: [PATCH 1/4] rely to upstream
---
llvm/include/llvm/CodeGen/MachineF
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/122215
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/122215
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/122215
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/122215
>From dd748277dff2b30ed02bfa466eeca7102aa93eb4 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 10 Jan 2025 13:53:08 -0800
Subject: [PATCH 1/5] rely to upstream
---
llvm/include/llvm/CodeGen/MachineF
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/122215
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/122215
>From dd748277dff2b30ed02bfa466eeca7102aa93eb4 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 10 Jan 2025 13:53:08 -0800
Subject: [PATCH 1/6] rely to upstream
---
llvm/include/llvm/CodeGen/MachineF
https://github.com/mingmingl-llvm ready_for_review
https://github.com/llvm/llvm-project/pull/122215
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
mingmingl-llvm wrote:
cc @Colibrow @SharonXSharon
https://github.com/llvm/llvm-project/pull/122215
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/122215
>From a2a6f9f5a6f7647f85a230241bf3aa39c4bd65d9 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Wed, 8 Jan 2025 16:53:45 -0800
Subject: [PATCH 1/2] [AsmPrinter][TargetLowering]Place a hot jump table into a
@@ -2769,6 +2769,23 @@ namespace {
} // end anonymous namespace
+StringRef AsmPrinter::getConstantSectionSuffix(const Constant *C) const {
mingmingl-llvm wrote:
done.
https://github.com/llvm/llvm-project/pull/129781
_
@@ -112,21 +117,52 @@ bool
StaticDataSplitter::runOnMachineFunction(MachineFunction &MF) {
return Changed;
}
+const Constant *
+StaticDataSplitter::getConstant(const MachineOperand &Op,
+const TargetMachine &TM,
+
@@ -206,14 +234,10 @@ void
StaticDataSplitter::annotateStaticDataWithoutProfiles(
for (const auto &MBB : MF) {
for (const MachineInstr &I : MBB) {
for (const MachineOperand &Op : I.operands()) {
-if (!Op.isGlobal())
- continue;
-const Globa
@@ -386,6 +386,16 @@ MCSection *TargetLoweringObjectFile::getSectionForConstant(
return DataSection;
}
+MCSection *TargetLoweringObjectFile::getSectionForConstant(
+const DataLayout &DL, SectionKind Kind, const Constant *C, Align
&Alignment,
+StringRef SectionPrefix
@@ -148,17 +184,9 @@ bool
StaticDataSplitter::partitionStaticDataWithProfiles(MachineFunction &MF) {
if (MJTI->updateJumpTableEntryHotness(JTI, Hotness))
++NumChangedJumpTables;
-} else {
- // Find global variables with local linkage.
-
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/129781
>From 072c44f0f9272682480cc2837196a906bd694276 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 28 Feb 2025 14:41:56 -0800
Subject: [PATCH 1/2] [CodeGen][StaticDataSplitter]Support constant pool
parti
@@ -0,0 +1,141 @@
+; RUN: llc -mtriple=aarch64 -enable-split-machine-functions \
+; RUN: -partition-static-data-sections=true -function-sections=true \
+; RUN: -unique-section-names=false \
+; RUN: %s -o - 2>&1 | FileCheck %s --dump-input=always
+
+; Repeat the RUN com
@@ -2769,6 +2769,23 @@ namespace {
} // end anonymous namespace
+StringRef AsmPrinter::getConstantSectionSuffix(const Constant *C) const {
+ SmallString<8> SectionNameSuffix;
+ if (TM.Options.EnableStaticDataPartitioning) {
+if (C && SDPI && PSI) {
+ auto Count = S
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/129781
>From 072c44f0f9272682480cc2837196a906bd694276 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 28 Feb 2025 14:41:56 -0800
Subject: [PATCH 1/4] [CodeGen][StaticDataSplitter]Support constant pool
parti
@@ -0,0 +1,131 @@
+target datalayout =
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-grtev4-linux-gnu"
+
+; Tests that constant pool hotness is aggregated across the module. The
mingmingl-llvm wrote:
G
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/129781
>From 072c44f0f9272682480cc2837196a906bd694276 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 28 Feb 2025 14:41:56 -0800
Subject: [PATCH 1/3] [CodeGen][StaticDataSplitter]Support constant pool
parti
@@ -0,0 +1,141 @@
+; RUN: llc -mtriple=aarch64 -enable-split-machine-functions \
+; RUN: -partition-static-data-sections=true -function-sections=true \
+; RUN: -unique-section-names=false \
+; RUN: %s -o - 2>&1 | FileCheck %s --dump-input=always
+
+; Repeat the RUN com
@@ -0,0 +1,141 @@
+; RUN: llc -mtriple=aarch64 -enable-split-machine-functions \
+; RUN: -partition-static-data-sections=true -function-sections=true \
+; RUN: -unique-section-names=false \
+; RUN: %s -o - 2>&1 | FileCheck %s --dump-input=always
+
+; Repeat the RUN com
@@ -0,0 +1,141 @@
+; RUN: llc -mtriple=aarch64 -enable-split-machine-functions \
mingmingl-llvm wrote:
Currently in the target pass configuration, the data partitioning pass is added
inside `TM->Options.EnableMachineFunctionSplitter ||
EnableMachineFunctionSpli
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/129781
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/mingmingl-llvm edited
https://github.com/llvm/llvm-project/pull/126018
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -2791,8 +2791,26 @@ void AsmPrinter::emitConstantPool() {
if (!CPE.isMachineConstantPoolEntry())
C = CPE.Val.ConstVal;
-MCSection *S = getObjFileLowering().getSectionForConstant(
-getDataLayout(), Kind, C, Alignment);
+MCSection *S = nullptr;
-
@@ -1072,6 +1072,41 @@ MCSection
*TargetLoweringObjectFileELF::getSectionForConstant(
return DataRelROSection;
}
+MCSection *TargetLoweringObjectFileELF::getSectionForConstant(
+const DataLayout &DL, SectionKind Kind, const Constant *C, Align
&Alignment,
+StringRef
@@ -203,17 +218,34 @@ void StaticDataSplitter::updateStatsWithProfiles(const
MachineFunction &MF) {
void StaticDataSplitter::annotateStaticDataWithoutProfiles(
const MachineFunction &MF) {
+ const MachineConstantPool *MCP = MF.getConstantPool();
for (const auto &MBB :
@@ -386,6 +386,16 @@ MCSection *TargetLoweringObjectFile::getSectionForConstant(
return DataSection;
}
+MCSection *TargetLoweringObjectFile::getSectionForConstant(
+const DataLayout &DL, SectionKind Kind, const Constant *C, Align
&Alignment,
+StringRef SectionPrefix
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/129781
>From 072c44f0f9272682480cc2837196a906bd694276 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Fri, 28 Feb 2025 14:41:56 -0800
Subject: [PATCH 1/2] [CodeGen][StaticDataSplitter]Support constant pool
parti
@@ -112,21 +117,52 @@ bool
StaticDataSplitter::runOnMachineFunction(MachineFunction &MF) {
return Changed;
}
+const Constant *
+StaticDataSplitter::getConstant(const MachineOperand &Op,
+const TargetMachine &TM,
+
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/139997
>From d15ae3e73589b50edeb2ab823976734eaa3806e5 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Thu, 15 May 2025 09:56:52 -0700
Subject: [PATCH] Support reading and writing data access profiles in memprof
https://github.com/mingmingl-llvm updated
https://github.com/llvm/llvm-project/pull/139997
>From 4045c943966609cc9a92693752af0e29a19e1ef9 Mon Sep 17 00:00:00 2001
From: mingmingl
Date: Thu, 15 May 2025 09:56:52 -0700
Subject: [PATCH] Support reading and writing data access profiles in memprof
101 - 200 of 206 matches
Mail list logo