Skip to content
Commit 61e77b11 authored by Craig Topper's avatar Craig Topper
Browse files

[DAGCombiner][X86][SystemZ] Canonicalize SSUBO with immediate RHS to SADDO by...

[DAGCombiner][X86][SystemZ] Canonicalize SSUBO with immediate RHS to SADDO by negating the immediate.

This lines up with what we do for regular subtract and it matches up better with X86 assumptions in isel patterns that add with immediate is more canonical than sub with immediate.

Differential Revision: https://reviews.llvm.org/D60020

llvm-svn: 358027
parent 2f5e9de8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment