Skip to content

Conversation

@sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Sep 27, 2025

// Do not substitute our unconditionally-executed value into a branch
// unless the value itself has no side effects
if !replacement_has_side_effect {

This should be handled in logical expressions as well, but was not handled.

@github-actions github-actions bot added A-minifier Area - Minifier C-bug Category - Bug labels Sep 27, 2025
Copy link
Member Author

sapphi-red commented Sep 27, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 27, 2025

CodSpeed Instrumentation Performance Report

Merging #14185 will degrade performances by 10.12%

Comparing 09-27-fix_minifier_don_t_inline_single_use_variable_in_conditional_logical_expressions (6b2daa8) with main (e4e963b)1

Summary

❌ 1 regression
✅ 32 untouched
⏩ 4 skipped2

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
minifier[cal.com.tsx] 32.7 ms 36.4 ms -10.12%

Footnotes

  1. No successful run was found on main (6b2daa8) during the generation of this report, so e4e963b was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

  2. 4 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@sapphi-red sapphi-red force-pushed the 09-27-feat_minifier_inline_single-use_variable_past_read-only_variables branch from ddc6456 to 50a938a Compare September 27, 2025 12:48
@sapphi-red sapphi-red force-pushed the 09-27-fix_minifier_don_t_inline_single_use_variable_in_conditional_logical_expressions branch from 2fb9327 to a5fe019 Compare September 27, 2025 12:48
@sapphi-red sapphi-red force-pushed the 09-27-feat_minifier_inline_single-use_variable_past_read-only_variables branch from 50a938a to 9e5b0b9 Compare September 27, 2025 12:55
@sapphi-red sapphi-red force-pushed the 09-27-fix_minifier_don_t_inline_single_use_variable_in_conditional_logical_expressions branch from a5fe019 to deda140 Compare September 27, 2025 12:55
@sapphi-red sapphi-red requested a review from Boshen September 27, 2025 13:00
@sapphi-red sapphi-red force-pushed the 09-27-fix_minifier_don_t_inline_single_use_variable_in_conditional_logical_expressions branch from deda140 to e6ef71d Compare September 27, 2025 13:01
@sapphi-red sapphi-red marked this pull request as ready for review September 27, 2025 13:02
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Oct 1, 2025
Copy link
Member

Boshen commented Oct 1, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 09-27-feat_minifier_inline_single-use_variable_past_read-only_variables branch from 9e5b0b9 to 6123684 Compare October 1, 2025 05:12
@graphite-app graphite-app bot force-pushed the 09-27-fix_minifier_don_t_inline_single_use_variable_in_conditional_logical_expressions branch from e6ef71d to 6b2daa8 Compare October 1, 2025 05:13
Base automatically changed from 09-27-feat_minifier_inline_single-use_variable_past_read-only_variables to main October 1, 2025 05:18
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Oct 1, 2025
@graphite-app graphite-app bot merged commit 6b2daa8 into main Oct 1, 2025
26 checks passed
@graphite-app graphite-app bot deleted the 09-27-fix_minifier_don_t_inline_single_use_variable_in_conditional_logical_expressions branch October 1, 2025 05:18
@Boshen Boshen mentioned this pull request Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-minifier Area - Minifier C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants