[Inliner] Fold the analysis remark into the missed remark
authorAdam Nemet <anemet@apple.com>
Tue, 27 Sep 2016 21:58:17 +0000 (21:58 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 27 Sep 2016 21:58:17 +0000 (21:58 +0000)
commit1142147e418d0f39ba1717ec96dd23b7f748892c
tree450ab5414223aa1f346c9d269435fdd3018d11b6
parent1a554be3b609959bd0611c5cb3a48c352ba3ebc3
[Inliner] Fold the analysis remark into the missed remark

There is really no reason for these to be separate.

The vectorizer started this pretty bad tradition that the text of the
missed remarks is pretty meaningless, i.e. vectorization failed.  There,
you have to query analysis to get the full picture.

I think we should just explain the reason for missing the optimization
in the missed remark when possible.  Analysis remarks should provide
information that the pass gathers regardless whether the optimization is
passing or not.

llvm-svn: 282542
llvm/lib/Transforms/IPO/Inliner.cpp
llvm/test/Transforms/Inline/optimization-remarks-yaml.ll
llvm/test/Transforms/Inline/optimization-remarks.ll