[llvm] [yaml2obj] Apply output size limit to COFF (PR #209695)

Haohai Wen via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 01:47:51 PDT 2026


================
@@ -0,0 +1,22 @@
+## Check the default COFF output limit and --max-size.
+## 0x9FFFC4 = 0xA00000 (10 MB) - COFF::Header16Size - COFF::SectionSize.
+# RUN: yaml2obj %s -DSIZE=0x9FFFC4 -o /dev/null
----------------
HaohaiWen wrote:

 Command:
  perf stat -r 5 -e cycles -- ./builds/bin/llvm-lit llvm/test/tools/yaml2obj/COFF/output-limit.yaml

  Result:
  Elapsed time: 0.2927 s +/- 0.0113 s
  CPU cycles: 1,027,714,303 cycles (+/- 3.77%)

  CPU:
  Intel Xeon Platinum 8280 CPU @ 2.70GHz

https://github.com/llvm/llvm-project/pull/209695


More information about the llvm-commits mailing list