1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/Bitcode
Steven Wu b1abd6ff52 [Bitcode] Avoid duplicating linker option when upgrading
Summary:
The upgrading path from old ModuleFlag based linker options to the new
NamedMetadata based linker option in in materializeMetadata() which gets
called once for the module and once for every GV. The linker options are
getting dup'ed every time and it can create massive amount of the linker
options in the object file that gets created from old bitcode. Fix the
problem by checking if the new option exists or not before upgrade
again.

rdar://64543389

Reviewers: pcc, t.p.northover, dexonsmith, arphaman

Reviewed By: arphaman

Subscribers: hiraditya, jkorous, ributzka, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D83688
2020-07-23 13:07:28 -07:00
..
Inputs [Bitcode] Avoid duplicating linker option when upgrading 2020-07-23 13:07:28 -07:00
2006-12-11-Cast-ConstExpr.ll
2009-06-11-FirstClassAggregateConstant.ll
aarch64-addp-upgrade.bc AArch64: fix bitcode upgrade of @llvm.neon.addp. 2020-01-14 13:41:32 +00:00
aarch64-addp-upgrade.ll AArch64: fix bitcode upgrade of @llvm.neon.addp. 2020-01-14 13:41:32 +00:00
aggregateInstructions.3.2.ll
aggregateInstructions.3.2.ll.bc
allocated.ll [DebugInfo] Support for DW_AT_associated and DW_AT_allocated. 2020-07-20 19:54:35 +05:30
anon-functions.ll
apple-clang-700-compat.test
arm32_neon_vcnt_upgrade.ll
associated.ll [DebugInfo] Support for DW_AT_associated and DW_AT_allocated. 2020-07-20 19:54:35 +05:30
atomic-no-syncscope.ll
atomic-no-syncscope.ll.bc
atomic.ll
attributes-3.3.ll
attributes-3.3.ll.bc
attributes.ll IR: Define byref parameter attribute 2020-07-20 10:23:09 -04:00
auto_upgrade_intrinsics.bc
avr-calling-conventions.ll
avr-calling-conventions.ll.bc
bcanalyzer-atomics.ll
binaryFloatInstructions.3.2.ll
binaryFloatInstructions.3.2.ll.bc
binaryIntInstructions.3.2.ll
binaryIntInstructions.3.2.ll.bc
bitcode-wrapper-header-armv7m.ll
bitcode-wrapper-header-x86_64.ll
bitwiseInstructions.3.2.ll
bitwiseInstructions.3.2.ll.bc
blockaddress.ll
branch-weight.ll [Bitcode] Drop invalid branch_weight in BitcodeReader 2020-07-23 09:07:15 -07:00
byval-upgrade.test
callbr.ll
callbr.ll.bc
calling-conventions.3.2.ll Add Windows Control Flow Guard checks (/guard:cf). 2019-10-28 15:19:39 +00:00
calling-conventions.3.2.ll.bc Add Windows Control Flow Guard checks (/guard:cf). 2019-10-28 15:19:39 +00:00
case-ranges-3.3.ll
case-ranges-3.3.ll.bc
cmpxchg-upgrade.ll
cmpxchg-upgrade.ll.bc
cmpxchg.3.6.ll
cmpxchg.3.6.ll.bc
compatibility-3.6.ll
compatibility-3.6.ll.bc
compatibility-3.7.ll
compatibility-3.7.ll.bc
compatibility-3.8.ll
compatibility-3.8.ll.bc
compatibility-3.9.ll
compatibility-3.9.ll.bc
compatibility-4.0.ll
compatibility-4.0.ll.bc
compatibility-5.0.ll [strictfp] Replace dangling strictfp attrs with nobuiltin 2020-06-15 10:05:35 -04:00
compatibility-5.0.ll.bc
compatibility-6.0.ll [strictfp] Replace dangling strictfp attrs with nobuiltin 2020-06-15 10:05:35 -04:00
compatibility-6.0.ll.bc
compatibility.ll [IR] Redefine Freeze instruction 2019-11-12 10:49:00 +09:00
constantsTest.3.2.ll
constantsTest.3.2.ll.bc
conversionInstructions.3.2.ll
conversionInstructions.3.2.ll.bc
dataLocation.ll [DebugInfo] support for DW_AT_data_location in llvm 2020-05-15 11:33:17 +05:30
debug-loc-again.ll
dicompileunit-gnu-pubnames.ll
DICompileUnit-no-DWOId.ll
DICompileUnit-no-DWOId.ll.bc
DIEnumerator-10.0.ll [DebugInfo] Change DIEnumerator payload type from int64_t to APInt 2020-04-18 12:49:31 -07:00
DIEnumerator-10.0.ll.bc [DebugInfo] Change DIEnumerator payload type from int64_t to APInt 2020-04-18 12:49:31 -07:00
DIExpression-4.0.ll
DIExpression-4.0.ll.bc
DIExpression-aggresult.ll
DIExpression-aggresult.ll.bc
DIExpression-deref.ll
DIExpression-deref.ll.bc
DIExpression-minus-upgrade.ll
DIExpression-minus-upgrade.ll.bc
diglobalvariable-3.8.ll
diglobalvariable-3.8.ll.bc
DIGlobalVariableExpression2.ll
DIGlobalVariableExpression2.ll.bc
DIGlobalVariableExpression.ll
DIGlobalVariableExpression.ll.bc
dilocalvariable-3.9.ll
dilocalvariable-3.9.ll.bc
DILocalVariable-explicit-tags.ll
DILocalVariable-explicit-tags.ll.bc
DILocation-implicit-code.ll Migrate function attribute "no-frame-pointer-elim" to "frame-pointer"="all" as cleanups after D56351 2019-12-24 15:57:33 -08:00
DILocation-implicit-code.ll.bc
DIModule-clang-module.ll [DebugInfo] Fortran module DebugInfo support in LLVM 2020-05-13 12:52:30 +05:30
DIModule-clang-module.ll.bc [DebugInfo] Fortran module DebugInfo support in LLVM 2020-05-13 12:52:30 +05:30
DIModule-fortran-module.ll [DebugInfo] Fortran module DebugInfo support in LLVM 2020-05-13 12:52:30 +05:30
DIModule-fortran-module.ll.bc [DebugInfo] Fortran module DebugInfo support in LLVM 2020-05-13 12:52:30 +05:30
DINamespace.ll
DINamespace.ll.bc
DISubprogram-distinct-definitions.ll
DISubprogram-distinct-definitions.ll.bc
DISubprogram-v4.ll
DISubprogram-v4.ll.bc
DISubprogram-v5.ll
DISubprogram-v5.ll.bc
disubrange-v0.ll
disubrange-v0.ll.bc
disubrange.ll
DITemplateParameter-5.0.ll Reland "[DebugInfo][clang][DWARF5]: Added support for debuginfo generation for defaulted parameters 2020-03-02 16:45:48 +05:30
DITemplateParameter-5.0.ll.bc Reland "[DebugInfo][clang][DWARF5]: Added support for debuginfo generation for defaulted parameters 2020-03-02 16:45:48 +05:30
dityperefs-3.8.ll
dityperefs-3.8.ll.bc
drop-debug-info.3.5.ll Migrate function attribute "no-frame-pointer-elim" to "frame-pointer"="all" as cleanups after D56351 2019-12-24 15:57:33 -08:00
drop-debug-info.3.5.ll.bc
dso_location.ll
extractelement.ll
fcmp-fast.ll
flags.ll
fortranSubrange.ll [DebugInfo] Upgrade DISubrange to support Fortran dynamic arrays 2020-05-28 13:46:41 +05:30
fortranSubrangeBackward.ll [DebugInfo] Upgrade DISubrange to support Fortran dynamic arrays 2020-05-28 13:46:41 +05:30
fortranSubrangeBackward.ll.bc [DebugInfo] Upgrade DISubrange to support Fortran dynamic arrays 2020-05-28 13:46:41 +05:30
function-address-space-fwd-decl.ll
function-default-address-spaces.ll Revert "Revert "Reland "[Support] make report_fatal_error abort instead of exit""" 2020-02-13 10:16:06 -08:00
function-encoding-rel-operands.ll
function-local-metadata.3.5.ll
function-local-metadata.3.5.ll.bc
function-nonzero-address-spaces-types.ll
function-nonzero-address-spaces.ll
global-variables.3.2.ll
global-variables.3.2.ll.bc
globalvariable-attributes.ll
highLevelStructure.3.2.ll
highLevelStructure.3.2.ll.bc
identification.ll
inalloca.ll
infer_dso_local.ll
invalid-functionptr-align.ll Revert "Revert "Reland "[Support] make report_fatal_error abort instead of exit""" 2020-02-13 10:16:06 -08:00
invalid-functionptr-align.ll.bc
invalid-type-for-null-constant.ll [BitcodeReader] Check if we can create a null constant for type. 2019-08-21 18:20:11 +00:00
invalid-type-for-null-constant.ll.bc [BitcodeReader] Check if we can create a null constant for type. 2019-08-21 18:20:11 +00:00
invalid-weak-external.ll
invalid.ll
invalid.ll.bc
invalid.test Revert "Revert "Reland "[Support] make report_fatal_error abort instead of exit""" 2020-02-13 10:16:06 -08:00
linkage-types-3.2.ll
linkage-types-3.2.ll.bc
local-linkage-default-visibility.3.4.ll
local-linkage-default-visibility.3.4.ll.bc
mdnodes-distinct-in-post-order.ll
mdnodes-distinct-nodes-break-cycles.ll
mdnodes-distinct-nodes-first.ll
mdnodes-in-post-order.ll
mdstring-high-bits.ll
memInstructions.3.2.ll StoreInst should store Align, not MaybeAlign 2020-05-15 12:26:58 -07:00
memInstructions.3.2.ll.bc
metadata-2.ll
metadata-function-blocks.ll
metadata-only-empty-string.ll
metadata-source.ll
metadata-source.ll.bc
metadata-strings.ll
metadata.3.5.ll
metadata.3.5.ll.bc
metadata.ll
miscInstructions.3.2.ll
miscInstructions.3.2.ll.bc
module_hash.ll
module-hash-strtab.ll
multi-module.ll Add support for multi-module bitcode files to llvm-dis 2019-11-14 10:40:41 -08:00
null-type.ll
null-type.ll.bc
objectsize-upgrade-7.0.ll
objectsize-upgrade-7.0.ll.bc
old-aliases.ll
old-aliases.ll.bc
operand-bundles-bc-analyzer.ll Introduce a "gc-live" bundle for the gc arguments of a statepoint 2020-06-03 15:00:24 -07:00
operand-bundles.ll
padding.test
pr18704.ll
pr18704.ll.bc
PR23310.test
ptest-new.ll
ptest-old.ll
select.ll
shuffle.ll
source-filename.test
ssse3_palignr.ll
standardCIntrinsic.3.2.ll
standardCIntrinsic.3.2.ll.bc
stream-types.c
stream-types.c.ast
stream-types.c.ast.incomplete
stream-types.c.dia
stream-types.c.dia.incomplete
stream-types.c.opt.bitstream
summary_version.ll Restore "[WPD/LowerTypeTests] Delay lowering/removal of type tests until after ICP" 2020-07-14 12:16:57 -07:00
tailcall.ll
terminatorInstructions.3.2.ll
terminatorInstructions.3.2.ll.bc
thinlto-alias2.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-alias3.ll
thinlto-alias.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-asm-noimport.ll
thinlto-deadstrip-flag.ll [ThinLTO] Import readonly vars with refs 2019-11-07 15:13:35 +03:00
thinlto-empty-summary-section.ll
thinlto-function-summary-callgraph-cast.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-function-summary-callgraph-pgo.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-function-summary-callgraph-profile-summary.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-function-summary-callgraph-relbf.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-function-summary-callgraph-sample-profile-summary.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-function-summary-callgraph.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-function-summary-functionattrs.ll
thinlto-function-summary-originalnames.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-function-summary-paramaccess.ll [StackSafety] Add info into function summary 2020-06-10 02:43:28 -07:00
thinlto-function-summary-refgraph.ll [ThinLTO] Always import constants 2020-01-15 19:29:01 +03:00
thinlto-function-summary.ll [ThinLTO] Compute the basic block count across modules. 2020-05-28 10:33:05 -07:00
thinlto-summary-globalvar.ll
thinlto-summary-linkage-types.ll
thinlto-summary-local-5.0.ll
thinlto-summary-local-5.0.ll.bc
thinlto-summary-section.ll
thinlto-synthetic-count-flag.ll [ThinLTO] Import readonly vars with refs 2019-11-07 15:13:35 +03:00
thinlto-type-tests.ll
thinlto-type-vcalls.ll
thinlto-unused-type-tests.ll
upgrade-arc-runtime-calls-bitcast.bc [ObjC][ARC] Check whether the return and parameter types of the old and 2019-10-24 13:08:50 -07:00
upgrade-arc-runtime-calls-bitcast.ll [ObjC][ARC] Check whether the return and parameter types of the old and 2019-10-24 13:08:50 -07:00
upgrade-arc-runtime-calls-new.bc [AutoUpgrader] Make ArcRuntime Autoupgrader more conservative 2019-08-13 17:52:21 +00:00
upgrade-arc-runtime-calls.bc Do not call replaceAllUsesWith to upgrade calls to ARC runtime functions 2019-08-13 01:23:06 +00:00
upgrade-arc-runtime-calls.ll [AutoUpgrader] Make ArcRuntime Autoupgrader more conservative 2019-08-13 17:52:21 +00:00
upgrade-clang-arc-use.ll
upgrade-clang-arc-use.ll.bc
upgrade-datalayout2.ll Add AutoUpgrade function to add new address space datalayout string to existing datalayouts. 2019-09-18 22:15:58 +00:00
upgrade-datalayout3.ll Add AutoUpgrade function to add new address space datalayout string to existing datalayouts. 2019-09-18 22:15:58 +00:00
upgrade-datalayout.ll Add AutoUpgrade function to add new address space datalayout string to existing datalayouts. 2019-09-18 22:15:58 +00:00
upgrade-dbg-checksum.ll
upgrade-dbg-checksum.ll.bc
upgrade-dbg-value.ll
upgrade-dbg-value.ll.bc
upgrade-debug-info-for-profiling.ll
upgrade-debug-info-for-profiling.ll.bc
upgrade-frame-pointer.ll Ignore "no-frame-pointer-elim" and "no-frame-pointer-elim-non-leaf" in favor of "frame-pointer" 2019-12-30 09:46:19 -08:00
upgrade-garbage-collection-for-objc.ll Fix conflict value for metadata "Objective-C Garbage Collection" in the mix of swift and Objective-C bitcode 2020-03-11 13:26:06 -07:00
upgrade-garbage-collection-for-swift.ll Fix conflict value for metadata "Objective-C Garbage Collection" in the mix of swift and Objective-C bitcode 2020-03-11 13:26:06 -07:00
upgrade-global-ctors.ll
upgrade-global-ctors.ll.bc
upgrade-global-dtors.ll
upgrade-global-dtors.ll.bc
upgrade-importedentity.ll
upgrade-importedentity.ll.bc
upgrade-invariant-group-barrier.ll
upgrade-linker-options-2.ll [Bitcode] Avoid duplicating linker option when upgrading 2020-07-23 13:07:28 -07:00
upgrade-linker-options.ll
upgrade-loop-metadata.ll
upgrade-loop-metadata.ll.bc
upgrade-memory-intrinsics.ll [Intrinsics] Add a 'NoAlias' intrinsic property; annotate llvm.memcpy 2019-08-14 08:33:07 +00:00
upgrade-module-flag.ll
upgrade-mrr-runtime-calls.bc Do not call replaceAllUsesWith to upgrade calls to ARC runtime functions 2019-08-13 01:23:06 +00:00
upgrade-objcretainrelease-asm.ll
upgrade-objcretainrelease-asm.ll.bc
upgrade-objcretainrelease.ll
upgrade-objcretainrelease.ll.bc
upgrade-pointer-address-space.ll
upgrade-pointer-address-space.ll.bc
upgrade-section-name.ll
upgrade-subprogram-this.ll
upgrade-subprogram-this.ll.bc
upgrade-subprogram.ll
upgrade-subprogram.ll.bc
upgrade-tbaa.ll Migrate function attribute "no-frame-pointer-elim"="false" to "frame-pointer"="none" as cleanups after D56351 2019-12-24 16:27:51 -08:00
upgrade-vecreduce-intrinsics.ll
upgrade-vecreduce-intrinsics.ll.bc
use-list-order2.ll
use-list-order.ll
value-with-long-name.ll
variableArgumentIntrinsic.3.2.ll
variableArgumentIntrinsic.3.2.ll.bc
vector-pcs.ll
vectorInstructions.3.2.ll
vectorInstructions.3.2.ll.bc
visibility-styles.3.2.ll
visibility-styles.3.2.ll.bc
vscale-round-trip.ll [SVE] Pass Scalable argument to VectorType::get in Bitcode Reader 2020-01-22 12:29:25 -08:00
vscale-shuffle.ll [BitcodeReader] Fix DelayedShuffle handling for ConstantExpr shuffles. 2020-06-30 13:23:07 -07:00
vst-forward-declaration.ll
weak-cmpxchg-upgrade.ll
weak-cmpxchg-upgrade.ll.bc
weak-macho-3.5.ll
weak-macho-3.5.ll.bc