[ARM] sext of a load is free
authorDavid Green <david.green@arm.com>
Mon, 12 Aug 2019 17:39:56 +0000 (17:39 +0000)
committerDavid Green <david.green@arm.com>
Mon, 12 Aug 2019 17:39:56 +0000 (17:39 +0000)
commit86876422ef086c9b98da61eee7d917dfe0fc404d
treea1d93b20f6c7a7e6cae782ef8d22ec19dd39ead5
parent4c9c98f36b64f35d271a1dc9d31baa9fa441878c
[ARM] sext of a load is free

This teaches the cost model that the sext or zext of a load is going to be
free.

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

llvm-svn: 368593
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/cast.ll