Unverified Commit 4d28d3f9 authored by Yingwei Zheng's avatar Yingwei Zheng Committed by GitHub
Browse files

[SDAG] Turn umin into smin if the saturation pattern is broken (#88505)

As we canonicalizes smin with non-negative operands into umin in the
middle-end, the saturation pattern will be broken.
This patch reverts the transform in DAGCombine to fix the regression on
ARM.

Fixes https://github.com/llvm/llvm-project/issues/85706.
parent 64dc5583
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment