diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-12-05 21:21:26 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-12-05 21:21:26 +0000 |
commit | 0602bb46596485b43fa8b86abbc8485d502025ce (patch) | |
tree | c0d06457ae762383e00ca62e85b0b010803ffbdf /lib/Target | |
parent | f2a1c83c86ceefb9a241aa728d1d1239a64b894e (diff) | |
download | external_llvm-0602bb46596485b43fa8b86abbc8485d502025ce.zip external_llvm-0602bb46596485b43fa8b86abbc8485d502025ce.tar.gz external_llvm-0602bb46596485b43fa8b86abbc8485d502025ce.tar.bz2 |
Cost Model: change the default cost of control flow instructions (br / ret / ...) to zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/TargetTransformImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetTransformImpl.cpp b/lib/Target/TargetTransformImpl.cpp index b36e6f8..2df7263 100644 --- a/lib/Target/TargetTransformImpl.cpp +++ b/lib/Target/TargetTransformImpl.cpp @@ -283,7 +283,7 @@ unsigned VectorTargetTransformImpl::getCastInstrCost(unsigned Opcode, Type *Dst, } unsigned VectorTargetTransformImpl::getCFInstrCost(unsigned Opcode) const { - return 1; + return 0; } unsigned VectorTargetTransformImpl::getCmpSelInstrCost(unsigned Opcode, |