Value soft float calls as more expensive in the inliner.
authorCameron Esfahani <dirty@apple.com>
Thu, 5 Feb 2015 02:09:33 +0000 (02:09 +0000)
committerCameron Esfahani <dirty@apple.com>
Thu, 5 Feb 2015 02:09:33 +0000 (02:09 +0000)
commitd02540a1d7d367f4f7616637606b9eaf321cf30a
tree1800a05ac51ceac5638d7f15bf5481df5662ba89
parenta7f2cf45f35f6a98a3e8e252d379e7023b48ba04
Value soft float calls as more expensive in the inliner.

Summary: When evaluating floating point instructions in the inliner, ask the TTI whether it is an expensive operation.  By default, it's not an expensive operation.  This keeps the default behavior the same as before.  The ARM TTI has been updated to return back TCC_Expensive for targets which don't have hardware floating point.

Reviewers: chandlerc, echristo

Reviewed By: echristo

Subscribers: t.p.northover, aemerson, llvm-commits

Differential Revision: http://reviews.llvm.org/D6936

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228263 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfo.h
include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/CodeGen/BasicTTIImpl.h
lib/Analysis/IPA/InlineCost.cpp
lib/Analysis/TargetTransformInfo.cpp
lib/Target/ARM/ARMSubtarget.h
lib/Target/ARM/ARMTargetTransformInfo.cpp
lib/Target/ARM/ARMTargetTransformInfo.h
test/Transforms/Inline/inline-fp.ll [new file with mode: 0644]