OSDN Git Service

[ARM] Optimize {s,u}{add,sub}.with.overflow.
authorJoel Galenson <jgalenson@google.com>
Wed, 20 Dec 2017 22:25:39 +0000 (22:25 +0000)
committerJoel Galenson <jgalenson@google.com>
Wed, 20 Dec 2017 22:25:39 +0000 (22:25 +0000)
commit7931efae706cb8a34f24224012b4a96f32edf6dc
treef5a5c9755f9462a239946b6fce87e4d9ef4dda8a
parentd8af78727dc58a1bda5583724a2ce10dbb31972b
[ARM] Optimize {s,u}{add,sub}.with.overflow.

The AArch64 backend contains code to optimize {s,u}{add,sub}.with.overflow during SelectionDAG.  This commit ports that code to the ARM backend.

Differential revision: https://reviews.llvm.org/D35635

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321224 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
test/CodeGen/ARM/su-addsub-overflow.ll [new file with mode: 0644]