Skip to content

Speeding up two hotspots in large programs. - #20909

Merged
benvanik merged 1 commit into
mainfrom
users/benvanik/speedups
May 28, 2025
Merged

benvanik merged 1 commit into
mainfrom
users/benvanik/speedups

Conversation

@benvanik

Copy link
Copy Markdown
Collaborator

InlineConstantGlobalInitializer was not using a symbol table and is redundant with what FoldGlobalsPass does anyway. The global info queried in resource usage analysis was just used to get the type - instead, the type can be accessed locally on the load/store op.

@benvanik
benvanik requested a review from hanhanW May 28, 2025 04:35
@benvanik benvanik added the performance ⚡ Performance/optimization related work across the compiler and runtime label May 28, 2025
InlineConstantGlobalInitializer was not using a symbol table and is
redundant with what FoldGlobalsPass does anyway. The global info queried
in resource usage analysis was just used to get the type - instead, the
type can be accessed locally on the load/store op.
@benvanik
benvanik force-pushed the users/benvanik/speedups branch from 760c272 to afc9313 Compare May 28, 2025 17:13
@benvanik
benvanik marked this pull request as ready for review May 28, 2025 17:26
@benvanik
benvanik enabled auto-merge (squash) May 28, 2025 17:26
@benvanik
benvanik requested a review from ScottTodd May 28, 2025 18:43
@benvanik
benvanik merged commit fb1f57e into main May 28, 2025
@benvanik
benvanik deleted the users/benvanik/speedups branch May 28, 2025 21:09
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
InlineConstantGlobalInitializer was not using a symbol table and is
redundant with what FoldGlobalsPass does anyway. The global info queried
in resource usage analysis was just used to get the type - instead, the
type can be accessed locally on the load/store op.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance ⚡ Performance/optimization related work across the compiler and runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants