| commit | 3342bf1451f4d0844ca9355abc976cdadecbfac1 | [log] [tgz] |
|---|---|---|
| author | Louis Gerbarg <lgg@apple.com> | Fri May 09 17:02:49 2014 +0000 |
| committer | Louis Gerbarg <lgg@apple.com> | Fri May 09 17:02:49 2014 +0000 |
| tree | 8f9f6d7e64673e43dd72776de79729869c7449c5 | |
| parent | 1f54b821643b8a246a7a6161847caa177b81ee64 [diff] |
Add custom lowering for add/sub with overflow intrinsics to ARM
This patch adds support to ARM for custom lowering of the
llvm.{u|s}add.with.overflow.i32 intrinsics for i32/i64. This is particularly useful
for handling idiomatic saturating math functions as generated by
InstCombineCompare.
Test cases included.
rdar://14853450
llvm-svn: 208435