OSDN Git Service

[TargetTransformInfo] Handle intrinsic call in getInstructionLatency()
authorGuozhi Wei <carrot@google.com>
Fri, 22 Sep 2017 18:25:53 +0000 (18:25 +0000)
committerGuozhi Wei <carrot@google.com>
Fri, 22 Sep 2017 18:25:53 +0000 (18:25 +0000)
commit55d3e2aced7d0c2adfc76eec4de4ef31d55777d3
tree5f81e298bdda457a2f5e3ad697946256f61fc635
parentb4d4e8cba86a569670445d6ec6a14ada2d447657
[TargetTransformInfo] Handle intrinsic call in getInstructionLatency()

Usually an intrinsic is a simple target instruction, it should have a small latency. A real function call has much larger latency. So handle the intrinsic call in function getInstructionLatency().

Differential Revision: https://reviews.llvm.org/D38104

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314003 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfoImpl.h
test/Analysis/CostModel/X86/costmodel.ll