[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, 17 Jun 2020 13:40:18 +0000 (13:40 +0000)
commit52b0db22f8cfb594c32389224570681d2d2c2f21
treeb0fb90b7c6c463314dab87028c7de704138b4435
parent37e06e8f5c6ee39a1d7cbaf7d5f5a3ebfa1b4e15
[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]