Skip to content

rustc_llvm: Emit module summaries when using -Clto=fat#159029

Open
erickt wants to merge 1 commit into
rust-lang:mainfrom
erickt:lto-module-summaries
Open

rustc_llvm: Emit module summaries when using -Clto=fat#159029
erickt wants to merge 1 commit into
rust-lang:mainfrom
erickt:lto-module-summaries

Conversation

@erickt

@erickt erickt commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Currently, module summaries are only emitted with thin lto. If we would link full/fat lto'd rust code against lto'd c++ code built with CFI (or WPD), those passes would fail during the link step because the participating rust modules are missing module summaries. Rust code does not know at compile-time if it would be participating in some special link which may require module summaries, so this PR ensures module summaries are unconditionally emitted for full/fat lto, just like with thin lto.

The WriteBitcodeToFile function just invokes the normal BitcodeWriterPass under the hood, but doesn't provide a way to set the argument for emitting module summaries. So this patch just adds the pass directly and sets that argument.

This is a rebase of @PiJoules's #158099, which also should fix up the tests with the gcc tools.

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 9, 2026
@rustbot

rustbot commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

r? @cuviper

rustbot has assigned @cuviper.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @cuviper

@PiJoules PiJoules left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a rust approver but LGTM from me with one nit

View changes since this review

/// "ThinLTO" metadata is defined and explicitly set to zero. Otherwise,
/// the thin LTO block ID will be emitted.
static void forceFullLTOSummary(Module *M) {
if (!M->getModuleFlag("ThinLTO")) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this can be an assert(!M->getModuleFlag("ThinLTO")) since this should never really be called if thinlto was used at all.

@PiJoules

PiJoules commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

cc @ilovepi

@erickt erickt force-pushed the lto-module-summaries branch from 141d64a to 10ed1e0 Compare July 9, 2026 18:05
@rust-bors

This comment has been minimized.

Currently, module summaries are only emitted with thin lto. If we would
link full/fat lto'd rust code against lto'd c++ code built with CFI (or
WPD), those passes would fail during the link step because the
participating rust modules are missing module summaries. Rust code does
not know at compile-time if it would be participating in some special
link which may require module summaries, so this PR ensures module
summaries are unconditionally emitted for full/fat lto, just like with
thin lto.

The WriteBitcodeToFile function just invokes the normal
BitcodeWriterPass under the hood, but doesn't provide a way to set the
argument for emitting module summaries. So this patch just adds the pass
directly and sets that argument.
@erickt erickt force-pushed the lto-module-summaries branch from 10ed1e0 to 25ec857 Compare July 10, 2026 22:33
@rustbot

rustbot commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-gcc failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
---- [run-make] tests/run-make/cross-lang-lto stdout ----

error: rmake recipe failed to complete
status: exit status: 1
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out" && env -u RUSTFLAGS -u __RUSTC_DEBUG_ASSERTIONS_ENABLED -u __STD_DEBUG_ASSERTIONS_ENABLED -u __STD_REMAP_DEBUGINFO_ENABLED AR="ar" BUILD_ROOT="/checkout/obj/build/x86_64-unknown-linux-gnu" CC="cc" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -m64" CXX="c++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -m64" HOST_RUSTC_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/build/run_make_support/a300432cf10d6d08/out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils abi aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cas cfguard cgdata codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfodwarflowlevel debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dtlto dwarfcfichecker dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddirective frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes plugins powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support supportlsp symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray xtensa xtensaasmparser xtensacodegen xtensadesc xtensadisassembler xtensainfo" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" PYTHON="/usr/bin/python3" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" SOURCE_ROOT="/checkout" TARGET="x86_64-unknown-linux-gnu" TARGET_EXE_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" __BOOTSTRAP_JOBS="4" __RMAKE_VERBOSE_SUBPROCESS_OUTPUT="1" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake"
--- stdout -------------------------------
objects: [
    "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.lib.f8abd83d02a8cfbf-cgu.0.rcgu.o",
    "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.0azmainx9e0vwscxci9kqwd3t.rcgu.o",
]
reading bitcode: /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.lib.f8abd83d02a8cfbf-cgu.0.rcgu.o
reading bitcode: /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.0azmainx9e0vwscxci9kqwd3t.rcgu.o
------------------------------------------
--- stderr -------------------------------
LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/build/run_make_support/a300432cf10d6d08/out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/lib.rs" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.a" "-Copt-level=2" "-Ccodegen-units=1" "-Clinker-plugin-lto" "--crate-type" "staticlib" "--target=x86_64-unknown-linux-gnu"
output status: `exit status: 0`
=== STDOUT ===



=== STDERR ===



"/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-ar" "x" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.a"
output status: `exit status: 0`
=== STDOUT ===



=== STDERR ===



"/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-bcanalyzer" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.lib.f8abd83d02a8cfbf-cgu.0.rcgu.o"
output status: `exit status: 0`
=== STDOUT ===
Summary of /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.lib.f8abd83d02a8cfbf-cgu.0.rcgu.o:
         Total size: 25056b/3132.00B/783W
        Stream type: LLVM IR
  # Toplevel Blocks: 4

Per-block Summary:
  Block ID #0 (BLOCKINFO_BLOCK):
      Num Instances: 1
         Total Size: 1152b/144.00B/36W
    Percent of file: 4.5977%
      Num SubBlocks: 0
        Num Abbrevs: 26
        Num Records: 3
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        3        60      20.0          SETBID

  Block ID #8 (MODULE_BLOCK):
      Num Instances: 1
         Total Size: 2850b/356.25B/89W
    Percent of file: 11.3745%
      Num SubBlocks: 12
        Num Abbrevs: 3
        Num Records: 11
    Percent Abbrevs: 18.1818%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        4       624     156.0          FUNCTION
        1       207                    HASH
        1       191            100.00  SOURCE_FILENAME
        1        35            100.00  VSTOFFSET
        1       147                    GLOBALVAR
        1       969                    DATALAYOUT
        1       303                    TRIPLE
        1        21                    VERSION

  Block ID #9 (PARAMATTR_BLOCK):
      Num Instances: 1
         Total Size: 245b/30.62B/7W
    Percent of file: 0.9778%
      Num SubBlocks: 0
        Num Abbrevs: 0
        Num Records: 6
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        6       180      30.0          ENTRY

  Block ID #10 (PARAMATTR_GROUP_BLOCK_ID):
      Num Instances: 1
         Total Size: 2453b/306.62B/76W
    Percent of file: 9.7901%
      Num SubBlocks: 0
        Num Abbrevs: 0
        Num Records: 12
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
       12      2388     199.0          ENTRY

  Block ID #11 (CONSTANTS_BLOCK):
      Num Instances: 2
         Total Size: 478b/59.75B/14W
    Percent of file: 1.9077%
       Average Size: 239.00/29.88B/7W
  Tot/Avg SubBlocks: 0/0.000000e+00
    Tot/Avg Abbrevs: 4/2.000000e+00
    Tot/Avg Records: 15/7.500000e+00
    Percent Abbrevs: 86.6667%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        6        48       8.0  100.00  SETTYPE
        5        60      12.0  100.00  INTEGER
        2        32      16.0          NULL
        1        20            100.00  CE_CAST
        1        42            100.00  STRING

  Block ID #12 (FUNCTION_BLOCK):
      Num Instances: 1
         Total Size: 313b/39.12B/9W
    Percent of file: 1.2492%
      Num SubBlocks: 1
        Num Abbrevs: 0
        Num Records: 6
    Percent Abbrevs: 33.3333%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        1        53                    UnknownCode47
        1        65                    INST_CALL
        1         5            100.00  INST_UNREACHABLE
        1        77                    INST_INVOKE
        1         5            100.00  INST_RET
        1        23                    DECLAREBLOCKS

  Block ID #13 (IDENTIFICATION_BLOCK_ID):
      Num Instances: 1
         Total Size: 502b/62.75B/15W
    Percent of file: 2.0035%
      Num SubBlocks: 0
        Num Abbrevs: 2
        Num Records: 2
    Percent Abbrevs: 50.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        1        11            100.00  EPOCH
        1       377                    STRING

  Block ID #14 (VALUE_SYMTAB):
      Num Instances: 1
         Total Size: 149b/18.62B/4W
    Percent of file: 0.5947%
      Num SubBlocks: 0
        Num Abbrevs: 1
        Num Records: 1
    Percent Abbrevs: 100.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        1        28            100.00  FNENTRY

  Block ID #15 (METADATA_BLOCK):
      Num Instances: 1
         Total Size: 1621b/202.62B/50W
    Percent of file: 6.4695%
      Num SubBlocks: 0
        Num Abbrevs: 6
        Num Records: 13
    Percent Abbrevs: 23.0769%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        4       124      31.0          NODE
        4       112      28.0          VALUE
        2        56      28.0          NAMED_NODE
        2       236     118.0  100.00  NAME
        1       718            100.00  STRINGS

  Block ID #17 (TYPE_BLOCK_ID):
      Num Instances: 1
         Total Size: 565b/70.62B/17W
    Percent of file: 2.2549%
      Num SubBlocks: 0
        Num Abbrevs: 6
        Num Records: 14
    Percent Abbrevs: 50.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        3        73      24.3  100.00  FUNCTION
        3        78      26.0          INTEGER
        2        32      16.0  100.00  ARRAY
        1         4            100.00  UnknownCode25
        1        19            100.00  STRUCT_ANON
        1        16                    METADATA
        1        16                    LABEL
        1        16                    VOID
        1        22                    NUMENTRY

  Block ID #20 (GLOBALVAL_SUMMARY_BLOCK):
      Num Instances: 1
         Total Size: 821b/102.62B/25W
    Percent of file: 3.2767%
      Num SubBlocks: 0
        Num Abbrevs: 10
        Num Records: 4
    Percent Abbrevs: 50.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        1        22                    FLAGS
        1        22                    VERSION
        1        38            100.00  PERMODULE_GLOBALVAR_INIT_REFS
        1       106            100.00  PERMODULE_PROFILE

  Block ID #21 (OPERAND_BUNDLE_TAGS_BLOCK):
      Num Instances: 1
         Total Size: 1813b/226.62B/56W
    Percent of file: 7.2358%
      Num SubBlocks: 0
        Num Abbrevs: 0
        Num Records: 12
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
       12      1728     144.0          OPERAND_BUNDLE_TAG

  Block ID #22 (METADATA_KIND_BLOCK):
      Num Instances: 1
         Total Size: 7253b/906.62B/226W
    Percent of file: 28.9472%
      Num SubBlocks: 0
        Num Abbrevs: 0
        Num Records: 47
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
       47      7173     152.6          KIND

  Block ID #23 (STRTAB_BLOCK):
      Num Instances: 1
         Total Size: 2710b/338.75B/84W
    Percent of file: 10.8158%
      Num SubBlocks: 0
        Num Abbrevs: 1
        Num Records: 1
    Percent Abbrevs: 100.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        1      2603            100.00  BLOB

  Block ID #25 (SYMTAB_BLOCK):
      Num Instances: 1
         Total Size: 1814b/226.75B/56W
    Percent of file: 7.2398%
      Num SubBlocks: 0
        Num Abbrevs: 1
        Num Records: 1
    Percent Abbrevs: 100.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        1      1707            100.00  BLOB

  Block ID #26:
      Num Instances: 1
         Total Size: 245b/30.62B/7W
    Percent of file: 0.9778%
      Num SubBlocks: 0
        Num Abbrevs: 0
        Num Records: 2
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        2       172      86.0          UnknownCode1




=== STDERR ===



"/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-bcanalyzer" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.0azmainx9e0vwscxci9kqwd3t.rcgu.o"
output status: `exit status: 0`
=== STDOUT ===
Summary of /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/cross-lang-lto/rmake_out/libliblib.0azmainx9e0vwscxci9kqwd3t.rcgu.o:
         Total size: 30848b/3856.00B/964W
        Stream type: LLVM IR
  # Toplevel Blocks: 4

Per-block Summary:
  Block ID #0 (BLOCKINFO_BLOCK):
      Num Instances: 1
         Total Size: 1152b/144.00B/36W
    Percent of file: 3.7344%
      Num SubBlocks: 0
        Num Abbrevs: 26
        Num Records: 3
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        3        60      20.0          SETBID

  Block ID #8 (MODULE_BLOCK):
      Num Instances: 1
         Total Size: 3422b/427.75B/106W
    Percent of file: 11.0931%
      Num SubBlocks: 16
        Num Abbrevs: 2
        Num Records: 15
    Percent Abbrevs: 13.3333%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        9      1425     158.3          FUNCTION
        1       213                    HASH
        1       159            100.00  SOURCE_FILENAME
        1        35            100.00  VSTOFFSET
        1       969                    DATALAYOUT
        1       303                    TRIPLE
        1        21                    VERSION

  Block ID #9 (PARAMATTR_BLOCK):
      Num Instances: 1
         Total Size: 213b/26.62B/6W
    Percent of file: 0.6905%
      Num SubBlocks: 0
        Num Abbrevs: 0
        Num Records: 5
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        5       153      30.6          ENTRY

  Block ID #10 (PARAMATTR_GROUP_BLOCK_ID):
      Num Instances: 1
         Total Size: 4693b/586.62B/146W
    Percent of file: 15.2133%
      Num SubBlocks: 0
        Num Abbrevs: 0
        Num Records: 10
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
       10      4632     463.2          ENTRY

  Block ID #11 (CONSTANTS_BLOCK):
      Num Instances: 1
         Total Size: 242b/30.25B/7W
    Percent of file: 0.7845%
      Num SubBlocks: 0
        Num Abbrevs: 4
        Num Records: 5
    Percent Abbrevs: 100.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        4        48      12.0  100.00  INTEGER
        1         8            100.00  SETTYPE

  Block ID #12 (FUNCTION_BLOCK):
      Num Instances: 5
         Total Size: 841b/105.12B/26W
    Percent of file: 2.7263%
       Average Size: 168.20/21.02B/5W
  Tot/Avg SubBlocks: 0/0.000000e+00
    Tot/Avg Abbrevs: 0/0.000000e+00
    Tot/Avg Records: 14/2.800000e+00
    Percent Abbrevs: 35.7143%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        5        43       8.6  100.00  INST_RET
        5       115      23.0          DECLAREBLOCKS
        4       326      81.5          INST_CALL

  Block ID #13 (IDENTIFICATION_BLOCK_ID):
      Num Instances: 1
         Total Size: 502b/62.75B/15W
    Percent of file: 1.6273%
      Num SubBlocks: 0
        Num Abbrevs: 2
        Num Records: 2
    Percent Abbrevs: 50.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        1        11            100.00  EPOCH
        1       377                    STRING

  Block ID #14 (VALUE_SYMTAB):
      Num Instances: 1
         Total Size: 245b/30.62B/7W
    Percent of file: 0.7942%
      Num SubBlocks: 0
        Num Abbrevs: 1
        Num Records: 5
    Percent Abbrevs: 100.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        5       140      28.0  100.00  FNENTRY

  Block ID #15 (METADATA_BLOCK):
      Num Instances: 1
         Total Size: 1621b/202.62B/50W
    Percent of file: 5.2548%
      Num SubBlocks: 0
        Num Abbrevs: 6
        Num Records: 13
    Percent Abbrevs: 23.0769%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        4       124      31.0          NODE
        4       112      28.0          VALUE
        2        56      28.0          NAMED_NODE
        2       236     118.0  100.00  NAME
        1       718            100.00  STRINGS

  Block ID #17 (TYPE_BLOCK_ID):
      Num Instances: 1
         Total Size: 501b/62.62B/15W
    Percent of file: 1.6241%
      Num SubBlocks: 0
        Num Abbrevs: 6
        Num Records: 10
    Percent Abbrevs: 50.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        4        96      24.0  100.00  FUNCTION
        2        56      28.0          INTEGER
        1         4            100.00  UnknownCode25
        1        16                    METADATA
        1        16                    VOID
        1        22                    NUMENTRY

  Block ID #20 (GLOBALVAL_SUMMARY_BLOCK):
      Num Instances: 1
         Total Size: 1013b/126.62B/31W
    Percent of file: 3.2838%
      Num SubBlocks: 0
        Num Abbrevs: 10
        Num Records: 7
    Percent Abbrevs: 71.4286%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
        5       326      65.2  100.00  PERMODULE_PROFILE
        1        22                    FLAGS
        1        22                    VERSION

  Block ID #21 (OPERAND_BUNDLE_TAGS_BLOCK):
      Num Instances: 1
         Total Size: 1813b/226.62B/56W
    Percent of file: 5.8772%
      Num SubBlocks: 0
        Num Abbrevs: 0
        Num Records: 12
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
       12      1728     144.0          OPERAND_BUNDLE_TAG

  Block ID #22 (METADATA_KIND_BLOCK):
      Num Instances: 1
         Total Size: 7253b/906.62B/226W
    Percent of file: 23.5121%
      Num SubBlocks: 0
        Num Abbrevs: 0
        Num Records: 47
    Percent Abbrevs: 0.0000%

 Record Histogram:
    Count    # Bits     b/Rec   % Abv  Record Kind
       47      7173     152.6          KIND

  Block ID #23 (STRTAB_BLOCK):
      Num Instances: 1
         Total Size: 4438b/554.75B/138W
    Percent of file: 14.3867%
      Num SubBlocks: 0
        Num Abbrevs: 1
        Num Records: 1
    Percent Abbrevs: 100.0000%

---
  |                     ^^^^^^^^^^
  |
  = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

rustc: llvm-wrapper/PassWrapper.cpp:613: void forceFullLTOSummary(llvm::Module*): Assertion `!M->getModuleFlag("ThinLTO")' failed.
------------------------------------------

---- [run-make] tests/run-make/wasm-unexpected-features stdout end ----

failures:

Important

For more information how to resolve CI failures of this job, visit this link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants