You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Here's a concise summary of the major changes in this LLVM IR diff:
Vectorization of Memory Operations: Replaced llvm.memset and llvm.memcpy calls with vectorized store/load instructions (e.g., <2 x i64>, <4 x i32>, <2 x float>, <2 x double>), improving memory operation efficiency.
Struct-to-Vector Type Conversion: Changed alloca declarations for small structs (e.g., {i64, i64}, {float, float}) to native vector types (<2 x i64>, <2 x float>), enabling better register usage and vectorized access.
Elimination of Temporary Alloca + memcpy Patterns: Removed redundant stack allocations used solely as memcpy intermediaries (e.g., %.sroa.0.i.i.i.i), replacing them with direct vector loads/stores and phi nodes—reducing stack pressure and instruction count.
Improved Alignment Handling: Updated alignment attributes on vector loads/stores (e.g., align 8, align 16) to match vector type requirements, ensuring correctness and enabling efficient SIMD execution.
Cleanup of Lifetime Intrinsics: Removed unnecessary llvm.lifetime.start/end intrinsics around now-eliminated temporary allocas, simplifying control flow and reducing metadata overhead.
These changes collectively reflect aggressive SROA (Scalar Replacement of Aggregates) and vectorization optimizations, enhancing performance by leveraging SIMD capabilities and reducing memory traffic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link: llvm/llvm-project#165159
Requested by: @yxsamliu