Skip to content
Commit 969918e1 authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[DAG] Legalize umin(x,y) -> sub(x,usubsat(x,y)) and umax(x,y) ->...

[DAG] Legalize umin(x,y) -> sub(x,usubsat(x,y)) and umax(x,y) -> add(x,usubsat(y,x)) iff usubsat is legal

If usubsat() is legal, this is likely to result in smaller codegen expansion than the default cmp+select codegen expansion.

Allows us to move the x86-specific lowering to the generic expansion code.

Differential Revision: https://reviews.llvm.org/D92183
parent 4b9c2bbd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment