[CostModel] Model all `extractvalue`s as free.
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 29 Aug 2019 11:50:30 +0000 (11:50 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 29 Aug 2019 11:50:30 +0000 (11:50 +0000)
commit07c1e2bdfa5807309bf79b9eb21ad60d0a2b505b
treebaaa805bade0c1e2e98bd50db1fd29bf881e8a82
parent9df035808c84d092b4c7d9167e3e5a07b8ecee4d
[CostModel] Model all `extractvalue`s as free.

Summary:
As disscussed in https://reviews.llvm.org/D65148#1606412,
`extractvalue` don't actually generate any code,
so we should treat them as free.

Reviewers: craig.topper, RKSimon, jnspaulsson, greened, asb, t.p.northover, jmolloy, dmgreen

Reviewed By: jmolloy

Subscribers: javed.absar, hiraditya, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370339 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfoImpl.h
lib/Analysis/TargetTransformInfo.cpp
test/Analysis/CostModel/AArch64/aggregates.ll
test/Analysis/CostModel/X86/aggregates.ll