ARM cost model: Add costs for vector selects
authorArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 7 Feb 2013 16:10:15 +0000 (16:10 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 7 Feb 2013 16:10:15 +0000 (16:10 +0000)
commit213fced704f57e2b4a5cd41097ac0cf2c4a987ce
tree9c8b776ff4a18151f4fa50130cec86f8312ab3fe
parent259f9f4531e5c0cbd64f7a6ebb9cc78424273449
ARM cost model: Add costs for vector selects

Vector selects are cheap on NEON. They get lowered to a vbsl instruction.

radar://13158753

llvm-svn: 174631
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/select.ll [new file with mode: 0644]