[ARM] Teach the cost model that cross-class copies are costly.
authorJames Molloy <james.molloy@arm.com>
Fri, 12 Sep 2014 13:29:40 +0000 (13:29 +0000)
committerJames Molloy <james.molloy@arm.com>
Fri, 12 Sep 2014 13:29:40 +0000 (13:29 +0000)
commit94c25519a2acdc7853fb281dd39b31ca66aa7bad
tree7f08396ae24a52c752e091f297b7adf904d572ba
parent66feb63c3ca6da3fd88d4d27eae057182a0a8650
[ARM] Teach the cost model that cross-class copies are costly.

Cross-class copies being expensive is actually a trait of the microarchitecture, but as I haven't yet seen an example of a microarchitecture where they're cheap it seems best to just enable this by default, covering the non-mcpu build case.

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