[InlineCost] add visitSelectInst()
authorHaicheng Wu <haicheng@codeaurora.org>
Wed, 27 Sep 2017 14:44:56 +0000 (14:44 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Wed, 27 Sep 2017 14:44:56 +0000 (14:44 +0000)
commit3ec848bc50b46d0583689cd83f4da4b1d23690cf
tree2fe8a68c1548b9eb5b790adccec4e03e2727d31d
parent87337a2bb924c5e057355d82c912f2fd21c9f01e
[InlineCost] add visitSelectInst()

InlineCost can understand Select IR now.  This patch finds free Select IRs and
continue the propagation of SimplifiedValues, ConstantOffsetPtrs, and
SROAArgValues.

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

llvm-svn: 314307
llvm/lib/Analysis/InlineCost.cpp
llvm/test/Transforms/Inline/AArch64/select.ll [new file with mode: 0644]