Enable simplify libcalls for ARM PCS
authorSam Parker <sam.parker@arm.com>
Tue, 13 Sep 2016 12:10:14 +0000 (12:10 +0000)
committerSam Parker <sam.parker@arm.com>
Tue, 13 Sep 2016 12:10:14 +0000 (12:10 +0000)
commit214f7bf5cc2aa7b6bb98ca2d5d79ae1f67c6b88d
tree98d5da0e25008358f3aa3b84509663eafe4aab89
parent544b1df64fbc589a54d6c544a5d27b287a4b439d
Enable simplify libcalls for ARM PCS

Teach SimplifyLibcalls that in can treat functions annotated with
apcs, aapcs or aapcs_vfp like normal C functions if they only take
and return integer or pointer values, and the target is not iOS.

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

llvm-svn: 281322
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/ARM/strcmp.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/ARM/strcpy.ll [new file with mode: 0644]