Adding simple cast cost to ARM
authorRenato Golin <renato.golin@linaro.org>
Tue, 29 Jan 2013 23:31:38 +0000 (23:31 +0000)
committerRenato Golin <renato.golin@linaro.org>
Tue, 29 Jan 2013 23:31:38 +0000 (23:31 +0000)
commit0261cea689c71a15175faf37fdc6bd1d9f69c46e
tree4171018f32ce26398acda35d0de58bfecd57beea
parent76122f9c13e7b840687de2b8d5767c73dac02a3b
Adding simple cast cost to ARM

Changing ARMBaseTargetMachine to return ARMTargetLowering intead of
the generic one (similar to x86 code).

Tests showing which instructions were added to cast when necessary
or cost zero when not. Downcast to 16 bits are not lowered in NEON,
so costs are not there yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173849 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMTargetMachine.h
lib/Target/ARM/ARMTargetTransformInfo.cpp
test/Transforms/LoopVectorize/ARM/mul-cast-vect.ll [new file with mode: 0644]