134ARG

Results comments of 134ARG

I already have a fix for that. Please assign it to me.

I could propose a patch for that. Please assign it to me.

I could patch for that. Please assign it to me.

> Hi [@134ARG](https://github.com/134ARG), just checking in on this. Are you still actively looking into a fix ? If you've gotten busy and you want to hand it off, I would...

> What is the real-world motivating context for this? After carefully evaluating the consequences of refining mul transformer, i decide to close this - indeed we currently have no obvious...

> Lack of FMF flags appears to be a middle-end issue not a x86 backend issue? Yes. x86 is just the symptom of missing the nnan flag. edited.

Seems the root cause is around here, where SelectionDAG calls select pattern matching: https://github.com/llvm/llvm-project/blob/62b7cf9623fc310525f39ed69aaecc318a909731/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp#L3860-L3861 which moves to: https://github.com/llvm/llvm-project/blob/62b7cf9623fc310525f39ed69aaecc318a909731/llvm/lib/Analysis/ValueTracking.cpp#L9178-L9205 Inside this snippet, it only checks explicit nnan: https://github.com/llvm/llvm-project/blob/62b7cf9623fc310525f39ed69aaecc318a909731/llvm/lib/Analysis/ValueTracking.cpp#L9204-L9205 Later, `matchDecomposedSelectPattern()` calls...

I just realized I may overlook that. Since we already have the needed analysis results for the optimization in the SCEV without expensive-range-sharpening, it might be a missed pattern that...

> Hi [@134ARG](https://github.com/134ARG) , thanks for your issue. I think this optimization can be generalized into this form. C >=s 0 |= select(y >=s C, sadd_sat(x, y) >=s x, true)...