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:
Widespread @llvm.assume Insertions: Hundreds of new @llvm.assume(i1 true) [ "nonnull"(ptr %X) ] calls were added across numerous benchmarks (e.g., abc, actix-rs, arrow, box2d, bullet3, ceres, clamav, csmith, darktable, double_conversion, elfshaker-rs, evmone, faiss, fish-rs, flatbuffers, fmt, g2o, glog, glslang, graphviz, grpc, hermes). These encode proven non-null pointer assumptions, enabling more aggressive optimization (e.g., eliminating null checks, enabling better alias analysis).
Refinement of Memory Attributes: Function memory attributes were updated to be more precise, notably changing inaccessiblemem: none to inaccessiblemem: write (and similar variants) for many functions (e.g., @llvm.umax.i64, @llvm.umin.i64, @sqrt, @llvm.fmuladd.f32, @llvm.lifetime.*, @llvm.memset.*). This provides stronger guarantees to the optimizer about side effects.
Addition of !nonnull and !noundef Metadata: Loads from pointers were annotated with !nonnull and !noundef metadata (e.g., load ptr, ptr %5, align 8, !tbaa !10, !nonnull !82, !noundef !82). This explicitly tells the optimizer that the loaded pointer is guaranteed non-null and its value is well-defined, complementing the @llvm.assume calls.
Minor Phi Node Reordering: In several places (e.g., actix-rs, box2d, eastl), the order of incoming values in phi instructions was adjusted (e.g., moving %183, %173 to %183, %.lr.ph). While functionally equivalent, this likely reflects a change in the order of basic block predecessors or internal canonicalization.
Cleanup of TBAA and Loop Metadata: Some !tbaa and !llvm.loop metadata identifiers were simplified or replaced with empty metadata (!{}) or distinct metadata with updated numbering (e.g., !8 = !{} instead of distinct !{!8, !5}). This is typically an internal cleanup or normalization step during IR generation or optimization passes.
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#185080
Requested by: @philnik777