Skip to content
Commit 1cf88812 authored by Owen Anderson's avatar Owen Anderson
Browse files

Add an InstCombine transform to recognize instances of manual overflow-safe addition

(performing the addition in a wider type and explicitly checking for overflow), and
fold them down to intrinsics.  This currently only supports signed-addition, but could
be generalized if someone works out the magic constant formulas for other operations.

Fixes <rdar://problem/8558713>.

llvm-svn: 121905
parent 15f96baa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment