T-compiler Meeting Agenda 2023-08-10
Announcements
- wg-async deep dive: 2024 Prelude +
Future::map
at time:2023-08-10T12:00:00-04:00 - AFIT/RPITIT Impl Triage at time:2023-08-10T16:00:00-04:00
- Reminder: if you see a PR/issue that seems like there might be legal implications due to copyright/IP/etc, please let us know (or at least message @davidtwco or @Wesley Wiser so we can pass it along).
Other WG meetings (calendar link)
MCPs/FCPs
- New MCPs (take a look, see if you like them!)
- No new proposals this time.
- Old MCPs (not seconded, take a look)
- “Cell Broadband Engine SPU support” compiler_team#614 (Zulip)
- “Add support for Zephyr OS” compiler_team#629 (Zulip)
- “Consistently use "region" terminology in later stages of the compiler” compiler_team#634 (Zulip)
- “Add a new
--build-id
flag to rustc” compiler_team#635 (Zulip) - “Simplify and improve explicitness of the check-cfg syntax” compiler_team#636 (Zulip)
- “Add support for visionOS targets” compiler_team#642 (Zulip)
- “Add illumos Tier3 targets” compiler_team#644 (Zulip)
- “Migrate away from u32 as an offset/length type” compiler_team#647 (Zulip)
- “Add
builtin:$path
option to the-L
flag” compiler_team#659 (Zulip)
- Pending FCP requests (check your boxes!)
- “Retire the mailing list and make all decisions on zulip” compiler_team#649 (Zulip)
- concerns raised
- “Tracking issue for dyn upcasting coercion” rust#65991
- concerns raised, notably about the stabilization requirements (from here)
- “Support overriding
warnings
level for a specific lint via command line” rust#113307 - “Stabilize
PATH
option for--print KIND=PATH
” rust#114183
- “Retire the mailing list and make all decisions on zulip” compiler_team#649 (Zulip)
- Things in FCP (make sure you’re good with it)
- “Add a blanket flag to enable/disable codegen UB checks” compiler_team#625 (Zulip)
- “[MCP] proposing a macros working group” compiler_team#637 (Zulip)
- “Disallow non-identifier-valid –extern crate names " compiler_team#650 (Zulip)
- “Windows support schedule 2024” compiler_team#651 (Zulip)
- “New tier-3 targets for TEEOS” compiler_team#652 (Zulip)
- “Expose default_hidden_visibility as a rustc command line option” compiler_team#656 (Zulip)
- Accepted MCPs
- “Revise error code documentation standard” compiler-team#615
- “[MCP] proposing a macros working group” compiler-team#637
- “Disallow non-identifier-valid –extern crate names " compiler-team#650
- “Windows support schedule 2024” compiler-team#651
- “New tier-3 targets for TEEOS” compiler-team#652
- “Expose default_hidden_visibility as a rustc command line option” compiler-team#656
- Finalized FCPs (disposition merge)
- “check for non-defining uses of RPIT” rust#112842
- “add notes about non-compliant FP behavior on 32bit x86 targets” rust#113053
- “Mention style for new syntax in tracking issue template” rust#113586
- “Make
unconditional_recursion
warning detect recursive drops” rust#113902
WG checkins
- @_WG-async-foundations by @nikomatsakis and @tmandry (previous checkin):
Checkin text
Backport nominations
T-compiler stable / T-compiler beta
- :beta: “lint/ctypes: only try normalize” rust#113921
- Fixes P-medium #113900, ICE when trying to compile an empty crate pulling a specific crate
abi_stable
as dependency
- Fixes P-medium #113900, ICE when trying to compile an empty crate pulling a specific crate
- :beta: “Restrict linker version script of proc-macro crates to just its two symbols” rust#114470
- Fixes #111888 and #99978
- “Restrict linker version script of proc-macro crates to just the two symbols of each proc-macro crate.”
- No stable nominations for
T-compiler
this time.
PRs S-waiting-on-team
- Other issues in progress or waiting on other teams
Issues of Note
Short Summary
- 1 T-compiler P-critical issues
- 54 T-compiler P-high issues
- 0 P-critical, 1 P-high, 3 P-medium, 1 P-low regression-from-stable-to-beta
- 0 P-critical, 1 P-high, 3 P-medium, 2 P-low regression-from-stable-to-nightly
- 1 P-critical, 33 P-high, 100 P-medium, 18 P-low regression-from-stable-to-stable
P-critical
- “Recursion using
extern "C"
causes miscompilation” rust#114312- Seems to have regressed in the LLVM 16 upgrade, #109474 (comment)
- Should be resolved by LLVM fix llvm-project#150
- PR is also
I-compiler-nominated
to discuss an LLVM 16 backport
- “Miscompilation when matching on an enum after printing Hello world” rust#114691
- Regressed in LLVM 17 upgrade
- @Nikita Popov reported upstream llvm-project#64589 and self-assigned (:heart:)
- No
P-critical
issues forT-types
this time.
- No
P-critical
issues forT-rustdoc
this time.
P-high regressions
- No
P-high
beta regressions this time.
Unassigned P-high nightly regressions
- “regex miscompiles with aggressive optimization flags” rust#114488
- bisected to #109025
- (confirm P-high)?
Performance logs
Overall a very positive week, primarily due to an upgrade to LLVM 17 and some changes to lint execution. Memory usage is down 4-7% over the last week and wall times are down 3-5%.
Triage done by @simulacrum. Revision range: 828bdc2c26f5c95773c4ecf72870919f16417b66..443c3161dd04f4c1b656a626f9079921bee9c326
Summary:
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | - | - | 0 |
Regressions (secondary) | - | - | 0 |
Improvements (primary) | -3.1% | [-7.1%, -1.2%] | 253 |
Improvements (secondary) | -4.1% | [-28.4%, -0.3%] | 233 |
All (primary) | -3.1% | [-7.1%, -1.2%] | 253 |
2 Regressions, 7 Improvements, 2 Mixed; 2 of them in rollups 64 artifact comparisons made in total
Regressions
Rollup of 9 pull requests #114481 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | 0.8% | [0.4%, 1.5%] | 80 |
Regressions (secondary) | 0.7% | [0.2%, 1.2%] | 25 |
Improvements (primary) | - | - | 0 |
Improvements (secondary) | - | - | 0 |
All (primary) | 0.8% | [0.4%, 1.5%] | 80 |
Unclear what is causing this regression. It’s entirely limited to the incr-patched and incr-unchanged scenarios, and digging into one of the benchmarks (bitmaps-3.1.0 check incr-unchanged) seems to show a mix of noise and, in aggregate, significant improvements over the last several days. Not clear which PR in this rollup could have caused this change in behavior.
See these comments for some more details.
Re-enable atomic loads and stores for all RISC-V targets #98333 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | 0.8% | [0.4%, 1.3%] | 18 |
Regressions (secondary) | 0.6% | [0.2%, 0.9%] | 12 |
Improvements (primary) | - | - | 0 |
Improvements (secondary) | - | - | 0 |
All (primary) | 0.8% | [0.4%, 1.3%] | 18 |
This PR has a very similar regression profile to the previous rollup in this list (#114481).
Improvements
Remove constness
from TraitPredicate
#114202 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | - | - | 0 |
Regressions (secondary) | - | - | 0 |
Improvements (primary) | -0.7% | [-0.9%, -0.4%] | 16 |
Improvements (secondary) | -0.6% | [-1.2%, -0.3%] | 13 |
All (primary) | -0.7% | [-0.9%, -0.4%] | 16 |
cg_llvm: stop identifying ADTs in LLVM IR #114350 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | - | - | 0 |
Regressions (secondary) | - | - | 0 |
Improvements (primary) | -0.8% | [-1.2%, -0.6%] | 5 |
Improvements (secondary) | -1.1% | [-1.5%, -0.6%] | 6 |
All (primary) | -0.8% | [-1.2%, -0.6%] | 5 |
Convert builtin “global” late lints to run per module #113734 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | - | - | 0 |
Regressions (secondary) | 0.5% | [0.4%, 0.8%] | 3 |
Improvements (primary) | -1.7% | [-3.4%, -0.2%] | 88 |
Improvements (secondary) | -4.2% | [-26.5%, -0.2%] | 85 |
All (primary) | -1.7% | [-3.4%, -0.2%] | 88 |
parent_module_from_def_id does not need to be a query. #114516 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | 0.3% | [0.2%, 0.4%] | 2 |
Regressions (secondary) | - | - | 0 |
Improvements (primary) | -1.4% | [-2.0%, -1.1%] | 17 |
Improvements (secondary) | -1.2% | [-1.5%, -0.3%] | 11 |
All (primary) | -1.2% | [-2.0%, 0.4%] | 19 |
Steal MIR for CTFE when possible. #114502 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | - | - | 0 |
Regressions (secondary) | - | - | 0 |
Improvements (primary) | -0.6% | [-0.6%, -0.6%] | 1 |
Improvements (secondary) | -1.5% | [-2.6%, -0.5%] | 19 |
All (primary) | -0.6% | [-0.6%, -0.6%] | 1 |
Update to LLVM 17 #114048 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | - | - | 0 |
Regressions (secondary) | - | - | 0 |
Improvements (primary) | -2.2% | [-5.6%, -0.8%] | 173 |
Improvements (secondary) | -2.2% | [-12.9%, -0.5%] | 199 |
All (primary) | -2.2% | [-5.6%, -0.8%] | 173 |
This represents a large win across multiple benchmarks. Unfortunately it also regresses artifact sizes for libLLVM.so by 50MB. Investigation into why is ongoing.
Do not run ConstProp on mir_for_ctfe. #114459 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | 0.2% | [0.2%, 0.2%] | 1 |
Regressions (secondary) | - | - | 0 |
Improvements (primary) | -0.8% | [-1.2%, -0.5%] | 8 |
Improvements (secondary) | -1.7% | [-3.0%, -1.1%] | 7 |
All (primary) | -0.7% | [-1.2%, 0.2%] | 9 |
The one regression is actually within noise floor for the relevant benchmark.
Mixed
Optimize Iterator
implementation for &mut impl Iterator + Sized
#111200 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | 0.4% | [0.3%, 0.5%] | 6 |
Regressions (secondary) | - | - | 0 |
Improvements (primary) | - | - | 0 |
Improvements (secondary) | -0.7% | [-0.9%, -0.5%] | 2 |
All (primary) | 0.4% | [0.3%, 0.5%] | 6 |
Rollup of 7 pull requests #114604 (Comparison Link)
(instructions:u) | mean | range | count |
---|---|---|---|
Regressions (primary) | 1.4% | [0.4%, 2.0%] | 3 |
Regressions (secondary) | 1.2% | [1.1%, 1.3%] | 6 |
Improvements (primary) | -0.7% | [-0.9%, -0.4%] | 2 |
Improvements (secondary) | -1.0% | [-1.5%, -0.5%] | 2 |
All (primary) | 0.5% | [-0.9%, 2.0%] | 5 |
Investigation into cause is ongoing.
Nominated Issues
- “Recursion using
extern "C"
causes miscompilation” rust#114312- Nominated by @Josh Stone (cuviper) in comment: LLVM PR author @_DianQK suggests an LLVM 16 backport - sort of unusual for us
- “Non-temporal stores (and _mm_stream operations in stdarch) break our memory model” rust#114582
I-lang-nominated
, FIY to T-compiler- (comment) The nontemporal-store intrinsic was introduced in fe53a81, with a comment saying this will likely never be stable but then accidentally stabilized in stdarch#414
- “Associated type constraints on super traits allowing for unsound transmutation to trait objects” rust#114389
- No I-compiler-nominated RFCs this time.
Oldest PRs waiting for review
- “
-Z trait-solver=next
: Deduplicate region constraints in query responses” rust#111172- cc: @lcnr
- “Rebased: Mark drop calls in landing pads cold instead of noinline” rust#102099(last review activity: 2 months ago)
- “Only emit one error per unsized binding, instead of one per usage” rust#113183(last review activity: about 41 days ago)
- was reassigned to @_TaKO8Ki, reroll to someone else of WG-diag?
- “fix: extract rustc_test_marker attr in test_case” rust#113315(last review activity: about 37 days ago)
- assigned to @Jack Huey then @Vadim Petrochenkov was mentioned. Reroll this one?
Next week’s WG checkins
- TBA
Next meetings' agenda draft: https://hackmd.io/c9KaX3GNRZSKbIUp3SJpJw