1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 14:02:52 +02:00
llvm-mirror/test/tools/gold/X86
Teresa Johnson 2b4369dd03 [ThinLTO] Handle bitcode without function summary sections gracefully
Summary:
Several fixes to the handling of bitcode files without function summary
sections so that they are skipped during ThinLTO processing in llvm-lto
and the gold plugin when appropriate instead of aborting.

1 Don't assert when trying to add a FunctionInfo that doesn't have
  a summary attached.
2 Skip FunctionInfo structures that don't have attached function summary
  sections when trying to create the combined function summary.
3 In both llvm-lto and gold-plugin, check whether a bitcode file has
  a function summary section before trying to parse the index, and skip
  the bitcode file if it does not.
4 Fix hasFunctionSummaryInMemBuffer in BitcodeReader, which had a bug
  where we returned to early while looking for the summary section.

Also added llvm-lto and gold-plugin based tests for cases where we
don't have function summaries in the bitcode file. I verified that
either the first couple fixes described above are enough to avoid the
crashes, or fixes 1,3,4. But have combined them all here for added
robustness.

Reviewers: joker.eph

Subscribers: llvm-commits, joker.eph

Differential Revision: http://reviews.llvm.org/D14903

llvm-svn: 253796
2015-11-21 21:55:48 +00:00
..
Inputs Support for function summary index bitcode sections and files. 2015-10-04 14:33:43 +00:00
alias.ll [opaque pointer type] Add textual IR support for explicit type parameter for global aliases 2015-09-11 03:22:04 +00:00
bad-alias.ll Fix llvm/test/tools/gold/X86/bad-alias.ll. 2015-09-11 08:03:17 +00:00
bcsection.ll Tweak 2 x86 gold tests so they can run on non-x86 platforms 2015-09-11 14:45:34 +00:00
coff.ll
comdat.ll [opaque pointer type] Add textual IR support for explicit type parameter for global aliases 2015-09-11 03:22:04 +00:00
common.ll
disable-verify.ll Disable the second verification run when performing LTO through 2015-09-16 18:06:45 +00:00
drop-debug.ll
emit-llvm.ll
invalid.ll
linker-script.ll
linkonce-weak.ll
lit.local.cfg
no-map-whole-file.ll
opt-level.ll
parallel.ll Tweak 2 x86 gold tests so they can run on non-x86 platforms 2015-09-11 14:45:34 +00:00
pr19901.ll
remarks.ll [LTO] Appease buildbots take 3 2015-11-18 12:08:24 +00:00
slp-vectorize.ll
stats.ll
thinlto.ll [ThinLTO] Handle bitcode without function summary sections gracefully 2015-11-21 21:55:48 +00:00
vectorize.ll
weak.ll