1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00
llvm-mirror/lib
Dehao Chen d6dfa42e25 Fix the bug when -compile-twice is specified, the PSI will be invalidated.
Summary:
When using llc with -compile-twice, module is generated twice, but getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI will still get the old PSI with the original (invalidated) Module. This patch checks if the module has changed when calling getPSI, if yes, update the module and invalidate the Summary.
The bug does not show up in the current llc because PSI is not used in CodeGen yet. But with https://reviews.llvm.org/D24989, the bug will be exposed by test/CodeGen/PowerPC/pr26378.ll

Reviewers: eraman, davidxl

Subscribers: llvm-commits

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

llvm-svn: 282616
2016-09-28 18:41:14 +00:00
..
Analysis Fix the bug when -compile-twice is specified, the PSI will be invalidated. 2016-09-28 18:41:14 +00:00
AsmParser [AsmParser] Remove unused partial template specialization. 2016-09-22 22:02:59 +00:00
Bitcode [thinlto] Basic thinlto fdo heuristic 2016-09-26 20:37:32 +00:00
CodeGen Teach LiveDebugValues about lexical scopes. 2016-09-28 17:51:14 +00:00
DebugInfo Revert r282238 "Revert r282235 "[llvm-dwarfdump] - Teach dwarfdump to dump gdb-index section."" 2016-09-23 11:01:53 +00:00
Demangle Avoid using alignas and constexpr. 2016-09-06 20:36:24 +00:00
ExecutionEngine [MCJIT] Fix some inconsistent handling of name mangling inside MCJIT. 2016-09-12 17:19:24 +00:00
Fuzzer [libFuzzer] speedup TracePC::FinalizeTrace 2016-09-28 01:16:24 +00:00
IR [Inliner] Port all opt remarks to new streaming API 2016-09-27 23:47:03 +00:00
IRReader
LibDriver
LineEditor
Linker DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
LTO [thinlto] Basic thinlto fdo heuristic 2016-09-26 20:37:32 +00:00
MC [MC] Support .ds directives in assembler parser 2016-09-23 21:53:36 +00:00
Object [AVR] Handle AVR relocations when handling ELF files 2016-09-28 13:23:42 +00:00
ObjectYAML
Option
Passes Fix test after renaming -name-anon-functions pass to -name-anon-globals 2016-09-16 17:18:16 +00:00
ProfileData [Coverage] Make sorting criteria for CounterMappingRegions local. 2016-08-31 07:01:17 +00:00
Support Statistic: Bring back printing on exit by default 2016-09-27 19:38:55 +00:00
TableGen
Target [NVPTX] Added intrinsics for atom.gen.{sys|cta}.* instructions. 2016-09-28 17:25:38 +00:00
Transforms [SystemZ] Implementation of getUnrollingPreferences(). 2016-09-28 09:41:38 +00:00
CMakeLists.txt Try to fix a circular dependency in the modules build. 2016-09-06 20:16:19 +00:00
LLVMBuild.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00