OSDN Git Service

Refactor the VectorTargetTransformInfo interface.
authorNadav Rotem <nrotem@apple.com>
Fri, 26 Oct 2012 23:49:28 +0000 (23:49 +0000)
committerNadav Rotem <nrotem@apple.com>
Fri, 26 Oct 2012 23:49:28 +0000 (23:49 +0000)
commita5a3a61c5fdcee972791d4e08441ba6edf131b88
tree2f84237b706b2a0f4fda6d4e37672863ebc3e4e2
parent17f42e02a10bd4d43e4ba904c640224de2c48f51
Refactor the VectorTargetTransformInfo interface.

Add getCostXXX calls for different families of opcodes, such as casts, arithmetic, cmp, etc.

Port the LoopVectorizer to the new API.

The LoopVectorizer now finds instructions which will remain uniform after vectorization. It uses this information when calculating the cost of these instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166836 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
include/llvm/Target/TargetTransformImpl.h
include/llvm/TargetTransformInfo.h
lib/Target/TargetTransformImpl.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/X86/cost-model.ll