Skip to content

Instantly share code, notes, and snippets.

{
"__version__": [
13,
0,
0
],
"elapsed": 1.5996787548065186,
"tests": [
{
"code": "PASS",
@ellishg
ellishg / ExtractMapSection.patch
Last active June 14, 2021 16:51
Measure Size and Runtime Performance of MIP
diff --git a/llvm/lib/CodeGen/MIPSectionEmitter.cpp b/llvm/lib/CodeGen/MIPSectionEmitter.cpp
index 715b595ec1eb..865fb18c75b4 100644
--- a/llvm/lib/CodeGen/MIPSectionEmitter.cpp
+++ b/llvm/lib/CodeGen/MIPSectionEmitter.cpp
@@ -328,6 +328,8 @@ void MIPSectionEmitter::serializeToMIPRawSection() {
}
void MIPSectionEmitter::serializeToMIPMapSection() {
+ // Do not create the `__llvm_mipmap` section when measuring size and runtime performance.
+ return;