[ARM] sext of a load is free
commita8d29d072c7adfad4446469fbdfe7a5b0beb0e07
authorDavid Green <david.green@arm.com>
Mon, 12 Aug 2019 17:39:56 +0000 (12 17:39 +0000)
committerDavid Green <david.green@arm.com>
Mon, 12 Aug 2019 17:39:56 +0000 (12 17:39 +0000)
tree4a5ced5649c9f1b1e3c9fcd53102a26625bc0106
parentedb506d79d24ff816e1c17c113c3eb5efc35c490
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368593 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMTargetTransformInfo.cpp
test/Analysis/CostModel/ARM/cast.ll