[InlineCost] PrinterPass prints constants to which instructions are simplified
authorKirill Naumov <knaumov@azul.com>
Tue, 2 Jun 2020 18:57:30 +0000 (18:57 +0000)
committerKirill Naumov <knaumov@azul.com>
Wed, 24 Jun 2020 22:52:31 +0000 (22:52 +0000)
commit7f094f7f9d3e3c529afcfd553cee3b64419e72f2
tree213ab0bdb71a2107f0675e3d78c3d0c74207b352
parent3c5745cb1f3c501e551a8fa63b8f1d564c35016d
[InlineCost] PrinterPass prints constants to which instructions are simplified

This patch enables printing of constants to see which instructions were
constant-folded. Needed for tests and better visiual analysis of
inliner's work.

Reviewers: apilipenko, mtrofin, davidxl, fedor.sergeev

Reviewed By: mtrofin

Differential Revision: https://reviews.llvm.org/D81024
llvm/lib/Analysis/InlineCost.cpp
llvm/test/Transforms/Inline/simplified_to.ll [new file with mode: 0644]