HomePhabricator

[InstCombine] Optimize always overflowing signed saturating add/sub

Authored by nikic on May 29 2019, 11:37 AM.

Description

[InstCombine] Optimize always overflowing signed saturating add/sub

Based on the overflow direction information added in D62463, we can
now fold always overflowing signed saturating add/sub to signed min/max.

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

llvm-svn: 362006

Details

Committed
nikicMay 29 2019, 11:37 AM
Differential Revision
D62544: [InstCombine] Optimize always overflowing signed saturating add/sub
Parents
rG5feead5752e0: Fix an unused-variable error.
Branches
Unknown
Tags
Unknown