Repository: rust
Issue: fails to compile `rustc_middle` for `i686-pc-windows-gnullvm`
Labels: O-windows-gnu,I-compilemem,C-bug

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

While updating compiler to 1.82.0 version (host with stable 1.81.0 toolchain used) for i686-pc-windows-gnullvm target it failed to compile `rustc_middle` due to memory overflow 

I expected to see this happen: successful compilation

Instead, this happened:

<details>

```
rustc-LLVM ERROR: out of memory
  Allocation failed
  error: could not compile `rustc_middle` (lib)
  
  Caused by:
    process didn't exit successfully: `C:\_\B\src\CLANG32\build\bootstrap\debug\rustc 'C:\_\B\src\CLANG32\build\bootstrap\debug\rustc' --crate-name rustc_middle --edition=2021 'compiler\rustc_middle\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("rustc_use_parallel_compiler"))' -C metadata=9643f6209a9e95be -C extra-filename=-9643f6209a9e95be --out-dir 'C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps' --target i686-pc-windows-gnullvm -C linker=clang -L 'dependency=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps' -L 'dependency=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\release\deps' --extern 'bitflags=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\libbitflags-e8bafa1b1abb9158.rmeta' --extern 'derive_where=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\release\deps\derive_where-ac65012f402ea378.dll' --extern 'either=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\libeither-c8a0485d80424a37.rmeta' --extern 'field_offset=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\libfield_offset-abfbd9d4dbcde2ec.rmeta' --extern 'gsgdt=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\libgsgdt-fd78454f97ba6489.rmeta' --extern 'polonius_engine=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\libpolonius_engine-592f3791bab74b51.rmeta' --extern 'rustc_apfloat=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_apfloat-5cce731c1f9a87e4.rmeta' --extern 'rustc_arena=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_arena-b0346a1b00db53d6.rmeta' --extern 'rustc_ast=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_ast-9faf6254b22115a9.rmeta' --extern 'rustc_ast_ir=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_ast_ir-7eeb7abb8ca47ec0.rmeta' --extern 'rustc_attr=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_attr-4af0fc53c61c3031.rmeta' --extern 'rustc_data_structures=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_data_structures-9cd3caba91c3f12f.rmeta' --extern 'rustc_error_messages=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_error_messages-47a7ff3634813ccd.rmeta' --extern 'rustc_errors=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_errors-d05a208674e0cf0e.rmeta' --extern 'rustc_feature=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_feature-4fe2abb0a0af4b79.rmeta' --extern 'rustc_fluent_macro=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\release\deps\rustc_fluent_macro-ec424b422ceef2e1.dll' --extern 'rustc_graphviz=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_graphviz-95a794a50077dc13.rmeta' --extern 'rustc_hir=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_hir-59691c3e2392d752.rmeta' --extern 'rustc_hir_pretty=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_hir_pretty-a9e7bd3273381e4c.rmeta' --extern 'rustc_index=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_index-91e7d150c7534c94.rmeta' --extern 'rustc_macros=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\release\deps\rustc_macros-5e4d225b7cb701b2.dll' --extern 'rustc_query_system=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_query_system-fec92489315ab7b8.rmeta' --extern 'rustc_serialize=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_serialize-34199664de1bb70a.rmeta' --extern 'rustc_session=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_session-33cb977d4093c677.rmeta' --extern 'rustc_span=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_span-eb101559291aef79.rmeta' --extern 'rustc_target=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_target-8409e41193a219e5.rmeta' --extern 'rustc_type_ir=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\librustc_type_ir-8260da4ae97fe11b.rmeta' --extern 'smallvec=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\libsmallvec-90d4b093ace0bbf5.rmeta' --extern 'thin_vec=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\libthin_vec-0687f84f6c803f01.rmeta' --extern 'tracing=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\deps\libtracing-9171b932e6461f53.rmeta' -Cforce-frame-pointers=yes --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=cfg(bootstrap)' '--check-cfg=cfg(parallel_compiler)' -Zmacro-backtrace -Csplit-debuginfo=packed '-Wrustc::internal' -Wkeyword_idents_2024 -Wunsafe_op_in_unsafe_fn -Cforce-frame-pointers=true -Zon-broken-pipe=kill -Z binary-dep-depinfo -L 'native=C:\_\B\src\rustc-1.82.0-src\vendor\windows_i686_gnullvm-0.52.6\lib' -L 'native=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\build\stacker-bcb660e52798211c\out' -L 'native=C:\_\B\src\CLANG32\build\i686-pc-windows-gnullvm\stage1-rustc\i686-pc-windows-gnullvm\release\build\psm-19992ed744bbd2fd\out'` (exit code: 0xc000001d, STATUS_ILLEGAL_INSTRUCTION)
```

</details>

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.81.0 (eeb90cda1 2024-09-04)
binary: rustc
commit-hash: eeb90cda1969383f56a2637cbd3037bdf598841c
commit-date: 2024-09-04
host: i686-pc-windows-gnullvm
release: 1.81.0
LLVM version: 18.1.8
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary>Backtrace</summary>
<p>

No backtrace provided for build

</p>
</details>