llvm-project/llvm/test/Transforms/SampleProfile
Sam Elliott b0c9753691 Keep Optimization Remark Yaml in NewPM
Summary:
The New Pass Manager infrastructure was forgetting to keep around the optimization remark yaml file that the compiler might have been producing. This meant setting the option to '-' for stdout worked, but setting it to a filename didn't give file output (presumably it was deleted because compilation didn't explicitly keep it). This change just ensures that the file is kept if compilation succeeds.

So far I have updated one of the optimization remark output tests to add a version with the new pass manager. It is my intention for this patch to also include changes to all tests that use `-opt-remark-output=` but I wanted to get the code patch ready for review while I was making all those changes.

Fixes https://bugs.llvm.org/show_bug.cgi?id=33951

Reviewers: anemet, chandlerc

Reviewed By: anemet, chandlerc

Subscribers: javed.absar, chandlerc, fhahn, llvm-commits

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

llvm-svn: 311271
2017-08-20 01:30:45 +00:00
..
Inputs Do not inline recursive direct calls in sample loader pass. 2017-06-21 17:57:43 +00:00
branch.ll Do not set branch weight if the branch weight annotation is present. 2017-03-23 14:43:10 +00:00
calls.ll Remove the sample pgo annotation heuristic that uses call count to annotate basic block count. 2017-03-06 17:49:59 +00:00
cov-zero-samples.ll [OptDiag] Updating Remarks in SampleProfile 2017-08-11 21:12:04 +00:00
coverage-warning.ll
discriminator.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
early-inline.ll Do not inline recursive direct calls in sample loader pass. 2017-06-21 17:57:43 +00:00
entry_counts.ll
fnptr.ll Remove the sample pgo annotation heuristic that uses call count to annotate basic block count. 2017-03-06 17:49:59 +00:00
gcc-simple.ll
import.ll Add function importing info from samplepgo profile to the module summary. 2017-02-28 18:09:44 +00:00
indirect-call-gcc.ll Fix an obvious bug in SampleProfileReaderGCC. 2017-02-22 17:27:21 +00:00
indirect-call.ll Do not early-inline recursive calls in sample profile loader. 2017-06-08 20:11:57 +00:00
inline-act.ll
inline-combine.ll
inline-coverage.ll [OptDiag] Updating Remarks in SampleProfile 2017-08-11 21:12:04 +00:00
inline.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
nodebug.ll Before sample pgo annotation, do not inline a function that has no debug info. (NFC) 2016-11-22 22:50:01 +00:00
nolocinfo.ll
offset.ll
propagate.ll Use base discriminator in sample pgo profile matching. 2017-02-23 18:27:45 +00:00
remarks.ll Keep Optimization Remark Yaml in NewPM 2017-08-20 01:30:45 +00:00
summary.ll Only sets profile summary when it was not preset. 2016-12-14 22:06:49 +00:00
syntax.ll