134ARG
134ARG
For the IR pattern: ```llvm define i1 @test_frem_fcmp_inf(double %a, double %b) { entry: %rem = frem double %a, %b %is.inf = fcmp oeq double %rem, 0x7FF0000000000000 ; INF ret i1...
For the IR pattern like: ```llvm ir define i1 @test_sitofp_nonneg(i64 %a) { entry: ; 32767 means a max of 15 active bits. ; half precision's max exponent is 15. This...
In `fadd_impl` (used by `computeKnownFPClass`), the analysis correctly identifies cases where an fadd instruction mathematically cannot underflow. Specifically, if both operands share the same sign (e.g., both non-negative) and at...
For such reduced IR pattern: ```llvm define i1 @struct5_odd_index_bit2(i32 %idx) { %i = or i32 %idx, 1 %small = and i32 %i, 3 ; i%small is 0000 00?1 %offset =...
When looking at SPEC CPU 2017 with LLVM, I found a possible missed optimization in `benchspec/CPU/538.imagick_r/src/magick/gem.c`, function `ConvertRGBToHSB`, which could be extracted and compiled alone as: ```c typedef unsigned short...
InstSimplify folds: ```llvm ir %d = fsub nnan float %x, %x ``` to 0.0, but the fold only checks explicit fast-math flags. In some cases LLVM can already prove the...
AArch64 can lower an ordered floating-point clamp idiom to `fmaxnm` / `fminnm` when the clamp input has an explicit no-NaN fact, but the same source-shaped clamp remains `fcmp` / `fcsel`...
This is a reduced probe for a source pattern seen in SPEC CPU2017 `538.imagick_r`, `magick/quantize.c:FloydSteinbergDither`. The original code scans a row with `0 columns - 1 - x` and uses...
InstCombine does not remove a redundant `fabs` in an ordered comparison against a positive constant when the operand is the result of `sqrt`. Reduced IR: ```llvm define i1 @miss(double %x)...
For unsigned integers, `a = (x & m)` implies `a hash_mask + 1) + FIX_3_HASH_SIZE; ``` The original SPEC source does not contain an explicit boundary check such as `idx...