1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/tools
Sam Elliott e9e58e405f 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
..
bugpoint [NFC] Remove multiple semicolons 2017-06-28 23:15:16 +00:00
bugpoint-passes
dsymutil dsymutil: support dwarf version mismatches between object and clang module 2017-08-08 18:26:12 +00:00
gold [gold-plugin] Use more StringRef. No functionality change intended. 2017-08-10 19:28:00 +00:00
llc Delete Default and JITDefault code models 2017-08-03 02:16:21 +00:00
lli Orc: PR33769: Don't rely on comparisons with default constructed iterators 2017-08-11 16:38:28 +00:00
llvm-ar llvm: add llvm-dlltool support to the archiver 2017-07-18 21:26:38 +00:00
llvm-as
llvm-as-fuzzer
llvm-bcanalyzer Bitcode: Include any strings added to the string table in the module hash. 2017-07-06 17:56:01 +00:00
llvm-c-test fix typos in comments and error messges; NFC 2017-07-13 06:48:39 +00:00
llvm-cat Bitcode: Add a string table to the bitcode format. 2017-04-17 17:51:36 +00:00
llvm-config [GlobalISel] Make GlobalISel a non-optional library. 2017-08-03 21:52:25 +00:00
llvm-cov [llvm-cov] Add an option which maps the location of source directories on another machine to your local copies 2017-08-14 10:20:12 +00:00
llvm-cvtres Revert "Revert "Revert "Revert "Switch external cvtres.exe for llvm's own resource library."""" 2017-07-08 03:06:10 +00:00
llvm-cxxdump
llvm-cxxfilt
llvm-diff [IR] Redesign the case iterator in SwitchInst to actually be an iterator 2017-04-12 07:27:28 +00:00
llvm-dis [ThinLTO] Fix ThinLTO crash while destroying context 2017-08-15 22:23:44 +00:00
llvm-dwarfdump Remove some leftover DWARFContextInMemory. 2017-07-19 23:34:59 +00:00
llvm-dwp Don't pass the code model to MC 2017-08-02 20:32:26 +00:00
llvm-extract
llvm-go
llvm-jitlistener
llvm-link Re-apply r302108, "IR: Use pointers instead of GUIDs to represent edges in the module summary. NFCI." 2017-05-04 18:03:25 +00:00
llvm-lto Fix dangling StringRefs found by clang-tidy misc-dangling-handle check. 2017-07-04 15:13:02 +00:00
llvm-lto2 Delete Default and JITDefault code models 2017-08-03 02:16:21 +00:00
llvm-mc Don't pass the code model to MC 2017-08-02 20:32:26 +00:00
llvm-mc-assemble-fuzzer
llvm-mc-disassemble-fuzzer
llvm-mcmarkup
llvm-modextract Bitcode: Add a string table to the bitcode format. 2017-04-17 17:51:36 +00:00
llvm-mt llvm-mt: Merge manifest namespaces. 2017-08-19 00:37:41 +00:00
llvm-nm [llvm] Update MachOObjectFile::exports interface 2017-07-29 00:30:45 +00:00
llvm-objcopy [llvm][llvm-objcopy] When outputting to binary don't output segments that cover no sections 2017-08-04 23:18:18 +00:00
llvm-objdump [llvm-objdump] Use PRIx64 for output of ARM64_RELOC_ADDEND 2017-08-07 12:29:38 +00:00
llvm-opt-report
llvm-pdbutil Remove useless default case in switch 2017-08-18 09:02:06 +00:00
llvm-profdata [ProfileData] Add new option to dump topn hottest functions 2017-07-11 20:30:43 +00:00
llvm-rc Reapply: [llvm-rc] Add basic RC scripts parsing ability. 2017-08-18 18:24:17 +00:00
llvm-readobj Follow up for r307085: a better fix for a dangling StringRef. 2017-07-26 10:14:55 +00:00
llvm-rtdyld Use delegation instead of inheritance. 2017-07-19 22:27:28 +00:00
llvm-shlib [Solaris] enable --whole-archive for shared-library build, disable --version-script for Solaris-ld 2017-07-19 16:07:51 +00:00
llvm-size
llvm-split
llvm-stress [IR] Make use of Type::isPtrOrPtrVectorTy/isIntOrIntVectorTy/isFPOrFPVectorTy to shorten code. NFC 2017-07-09 07:04:00 +00:00
llvm-strings
llvm-symbolizer DebugInfo: Provide option for explicitly specifying the name of the DWP file 2017-07-30 01:34:08 +00:00
llvm-xray Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
lto
msbuild
obj2yaml Use delegation instead of inheritance. 2017-07-19 22:27:28 +00:00
opt Keep Optimization Remark Yaml in NewPM 2017-08-20 01:30:45 +00:00
opt-viewer [opt-viewer] Listify dict_items for Py3 indexing 2017-08-14 04:16:43 +00:00
sancov
sanstats [sanstats] Print the correct line information. 2017-07-13 00:49:03 +00:00
verify-uselistorder
xcode-toolchain
yaml2obj [yaml2obj][ELF] Add support for program headers 2017-07-19 20:38:46 +00:00
CMakeLists.txt
LLVMBuild.txt Reland "[LLVM][llvm-objcopy] Added basic plumbing to get things started" 2017-08-01 00:33:58 +00:00