llvm-project/llvm/test/Reduce
Florian Hahn 250de7388b
[llvm-reduce] Add reduction for special globals like llvm.used.
This patch adds a reduction of 'special' globals that lead to further
reductions (e.g. alias or regular globals reduction) being less efficient
because there are special constraints on values referenced in those
special globals. For example, values in @llvm.used and
@llvm.compiler.used need to be named, so replacing all uses of an
alias/global with undef or a different unnamed constant results in
invalid IR.

More details:
https://llvm.org/docs/LangRef.html#intrinsic-global-variables

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D90302
2020-11-11 11:25:05 +00:00
..
Inputs [Reduce] Argument reduction: do deal with function declarations 2020-07-26 01:31:56 +03:00
do-not-remove-terminator.ll [llvm-reduce] Skip terminators when reducing instructions. 2020-08-23 17:20:34 +01:00
no-replace-intrinsic-callee-with-undef.ll llvm-reduce: Test reduction for D88684 ( ee6e25e439 ) 2020-10-26 13:16:00 -07:00
remove-alias.ll [llvm-reduce] Add reduction for special globals like llvm.used. 2020-11-11 11:25:05 +00:00
remove-all-of-multiple-args.ll [Reduce] Rewrite runDeltaPass() workloop: do reduce a single and/or last target 2020-07-23 10:51:46 +03:00
remove-args-2.ll [NFC] Use FileCheck for llvm-reduce interesness test 2020-07-21 09:03:45 +01:00
remove-args-from-declaration.ll [Reduce] Argument reduction: do deal with function declarations 2020-07-26 01:31:56 +03:00
remove-args-used-by-ret.ll [Reduce] Argument reduction: don't try to drop terminator instructions 2020-07-21 00:06:03 +03:00
remove-args.ll Remove unnecessary 'rm' in llvm-reduce tests 2020-07-09 10:49:11 -07:00
remove-attributes-from-intrinsic-like-functions.ll [llvm-reduce] Reducing attributes 2020-07-09 23:10:43 +03:00
remove-attributes-from-intrinsics.ll [IR] Make nosync, nofree and willreturn default for intrinsics. 2020-10-20 11:57:19 +02:00
remove-bbs-ret-nonvoid.ll [llvm-reduce] Create returns with undef values for non-void functions. 2020-08-31 16:33:46 +01:00
remove-bbs-unwinded-to.ll [Reduce] Basic block reduction: do properly handle invoke insts (PR46818) 2020-07-26 01:28:59 +03:00
remove-bbs.ll
remove-call-site-attributes.ll [llvm-reduce] Reducing attributes 2020-07-09 23:10:43 +03:00
remove-funcs.ll [llvm-reduce] Skip terminators when reducing instructions. 2020-08-23 17:20:34 +01:00
remove-function-arguments-of-funcs-used-in-blockaddress.ll [Reduce] Argument reduction: shoe-horn new function into remaining uses of old function 2020-07-27 15:39:03 +03:00
remove-function-attributes.ll [llvm-reduce] Reducing attributes 2020-07-09 23:10:43 +03:00
remove-function-bodies-comdat.ll [llvm-reduce] Function body reduction: don't forget to unset comdat 2020-08-30 12:17:33 +02:00
remove-function-bodies-used-in-globals.ll [llvm-reduce] Skip chunks that lead to broken modules. 2020-08-28 09:08:35 +01:00
remove-function-bodies.ll [Reduce] Try turning function definitions into declarations first, NFCI-ish 2020-07-25 21:43:36 +03:00
remove-global-variable-attributes.ll [llvm-reduce] Reducing attributes 2020-07-09 23:10:43 +03:00
remove-global-vars.ll Remove unnecessary 'rm' in llvm-reduce tests 2020-07-09 10:49:11 -07:00
remove-instructions.ll [llvm-reduce] Skip terminators when reducing instructions. 2020-08-23 17:20:34 +01:00
remove-invoked-functions.ll [Reduce] Argument reduction: shoe-horn new function into remaining uses of old function 2020-07-27 15:39:03 +03:00
remove-metadata.ll Remove unnecessary 'rm' in llvm-reduce tests 2020-07-09 10:49:11 -07:00
remove-multiple-use-of-args-in-same-instruction.ll [Reduce] Argument reduction: do deal with function declarations 2020-07-26 01:31:56 +03:00
remove-multiple-use-of-global-vars-in-same-instruction.ll [Reduce] Argument reduction: do deal with function declarations 2020-07-26 01:31:56 +03:00
remove-operand-bundles.ll Remove unnecessary 'rm' in llvm-reduce tests 2020-07-09 10:49:11 -07:00
remove-single-arg.ll [Reduce] Rewrite runDeltaPass() workloop: do reduce a single and/or last target 2020-07-23 10:51:46 +03:00