OSDN Git Service

Set cost of invariant group intrinsics to 0
authorPiotr Padlewski <piotr.padlewski@gmail.com>
Fri, 7 Sep 2018 22:29:48 +0000 (22:29 +0000)
committerPiotr Padlewski <piotr.padlewski@gmail.com>
Fri, 7 Sep 2018 22:29:48 +0000 (22:29 +0000)
commitb9bd7dd812656972968393239740da22caaa47dc
treeeac0b908133ef36f1938b5c30e72dd5fcc73fa48
parent16a4c18a2382f220a50b1d37bebde4757cb436e9
Set cost of invariant group intrinsics to 0

Summary:
Like with other similar intrinsics, presense of strip or
launder.invariant.group should not change the result of inlining cost.
This is because they are just markers and do not perform any computation.

Reviewers: amharc, rsmith, reames, kuhar

Subscribers: eraman, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341725 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfoImpl.h
test/Transforms/Inline/launder.invariant.group.ll