Move the (add (umax X, C), -C) --> (usubsat X, C) X86 combine into generic DAGCombiner
First of a number of saturated arithmetic folds that can be moved out of X86-specific code for PR40111.
Paths
| Differential D57754
[DAGCombiner] (add (umax X, C), -C) --> (usubsat X, C) (PR40111) ClosedPublic Authored by RKSimon on Feb 5 2019, 7:30 AM.
Details Summary Move the (add (umax X, C), -C) --> (usubsat X, C) X86 combine into generic DAGCombiner First of a number of saturated arithmetic folds that can be moved out of X86-specific code for PR40111.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Feb 6 2019, 11:54 AM Closed by commit rL353457: [DAGCombiner] (add (umax X, C), -C) --> (usubsat X, C) (PR40111) (authored by RKSimon). · Explain WhyFeb 7 2019, 12:14 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 185845 llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
|