134ARG

Results comments of 134ARG

Yup. I briefly tried disabling block speculation in the first SimplifyCFG run. It fixes this case, but also brings regressions in several vectorization-related cases. It seems some more work is...

> I think this look like more benefit. Brilliant! Based on that I think there might be a even better case (https://alive2.llvm.org/ce/z/fbGYh3): ``` llvm ir define i16 @tgt(i16 noundef %x,...

```llvm ir define i16 @f1_f2_after_opt(i16 noundef %x, i16 noundef %y) { %is_one = icmp eq i16 %x, 1 %twice = zext i1 %is_one to i16 %result = shl i16 %y,...

I do not currently have an exact real-world occurrence. The testcase was derived from test2 in llvm/test/CodeGen/NVPTX/combine-mad.ll, which contains (s < 1 ? 1 : n + 1) * m....

@benscharl havent yet. You could take that, thanks!

@andjo403 Thanks for checking. I found this while digging through existing LLVM test cases. The root cause is that AssumptionCache associates the condition with `x`, but `isKnownNonZeroFromAssume()` only matches comparisons...

Thanks for the feedback. In that case, I think for now this is probably best viewed as an optimization inconsistency rather than a practically significant issue.

Currently I am testing a local fix for that. Surprisingly the fix for this issue grants over 3000 byte reduction in llvm-opt-benchmark .bc size across 51 testcases, but meanwhile brings...

Thanks for looking into this. It would be useful to check whether (a) alone lets the existing select folds eliminate the QEMU case. For the `computeConstantRange` extension, I think we...