HomePhabricator

Add custom lowering for add/sub with overflow intrinsics to ARM

Description

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

Details

Committed
louisMay 9 2014, 10:02 AM
Parents
rL208434: Add ExtractValue instruction to SimplifyCFG's ComputeSpeculationCost
Branches
Unknown
Tags
Unknown

Event Timeline