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:
Replacement of trunc+icmp with and+icmp for zero-extension checks: Across multiple benchmarks (delta-rs, coreutils-rs, eastl, image-rs, jiff-rs, openjdk, etc.), patterns like trunc i128 %x to i64; icmp eq i64 %y, 1 are replaced with and i128 %x, MASK; icmp eq i128 %y, 1. This avoids truncation and preserves full-width comparison semantics, likely improving correctness for large integers.
Refinement of switch statement default targets: In several switch i8 instructions (e.g., in actix-rs, delta-rs, influxdb-rs), the default target label is updated (e.g., from .thread26 to .thread34). This reflects internal control-flow restructuring, possibly due to loop optimizations or block reordering.
Simplification of conditional logic using bitwise AND and OR: Complex select-based conditionals (e.g., select i1 %cond1, i1 true, i1 %cond2) are replaced with direct or/and operations (e.g., or i1 %cond1, %cond2). This reduces instruction count and exposes more optimization opportunities.
Cleanup of dead or redundant truncations: Several instances of unnecessary trunc instructions (e.g., truncating i120, i48, i24 values before use) are removed, replaced by and masks to extract relevant bits—improving clarity and eliminating potential undefined behavior from overflow-prone truncations.
Phi node and landing pad operand updates: In exception-handling regions (e.g., pingora-rs, quiche-rs), phi nodes and landing pad operands are updated to reference correct predecessor blocks (e.g., %17 instead of %16, %23 instead of %22). This ensures correct SSA form after control-flow graph modifications, maintaining exception safety and debuggability.
These changes collectively reflect ongoing improvements in LLVM’s integer handling, control-flow simplification, and exception-handling code generation—enhancing both correctness and performance across diverse Rust and C++ codebases.
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#171195
Requested by: @dtcxzyw