ARM cost model: Penalize insertelement into D subregisters
authorArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 4 Feb 2013 02:52:05 +0000 (02:52 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 4 Feb 2013 02:52:05 +0000 (02:52 +0000)
commita7ad84851b018602487779d97195bad0536f9a7a
tree3c0839201b04eeff17851e5ff8baab233f86f7d1
parent4b5dbaa96a6e51e925ac017468538754aad8e5cc
ARM cost model: Penalize insertelement into D subregisters

Swift has a renaming dependency if we load into D subregisters. We don't have a
way of distinguishing between insertelement operations of values from loads and
other values. Therefore, we are pessimistic for now (The performance problem
showed up in example 14 of gcc-loops).

radar://13096933

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174300 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMTargetTransformInfo.cpp
test/Analysis/CostModel/ARM/insertelement.ll [new file with mode: 0644]
test/Analysis/CostModel/ARM/lit.local.cfg [new file with mode: 0644]