maple-syntax
maple-syntax
## Summary InstCombine folds `select (trunc i8 %x to i1), %y, 0` to `and i8 %x, %y` when `%y` is `noundef` and has range `[0, 2)`. However, expressing the same...
## Summary InstCombine misses a value-preserving `zext`-of-`trunc nuw` simplification when a single `trunc nuw` is split into two consecutive `trunc nuw` instructions. The original and modified IR are equivalent, but...
InstCombine fails to simplify an `extractvalue` of an aggregate `select` when one selected aggregate is constructed by inserting field 1 before field 0\. Reversing the insertion order of these independent...
InstCombine recognizes a masked 16\-bit rotation expressed using `lshr`, `shl`, and `or` on `i32` values followed by truncation, and canonicalizes it to `llvm.fshr.i16`\. Replacing the right shift with an `icmp`...
InstCombine misses an unsigned comparison simplification involving a contiguous low-bit mask constructed using `llvm.bitreverse`. For valid i8 shift amounts, `bitreverse(0xff y`. Therefore, `x
InstCombine fails to simplify an equality comparison involving a contiguous low-bit mask. For valid shift amounts, `(0xff >> y) & 7` is a contiguous low-bit mask, so `x == (x...
InstCombine misses an unsigned comparison simplification when `x == (x & mask)` is expressed as a wrapping subtraction followed by comparison against zero. For a contiguous low-bit mask, the following...
The default O2 pipeline fails to fold the following function to `ret i1 false`. The `if.then` branch is reachable only when `y != x && w != z`. Therefore, both...
Writing `remaining - count` as `remaining + (-count)` on one branch prevents `-O2` from sharing a call and cursor update across two branches. On x86-64, the reduced function grows from...