llvm-project/llvm/test
Quentin Colombet 9766fed9c1 [DeadArgElim] Re-apply: Set unused arguments for internal functions
The re-apply includes fixes to clang tests that were missed in
the original commit.

Original message:
Prior to this patch we would only set to undef the unused arguments of the
external functions. The rationale was that unused arguments of internal
functions wouldn't need to be turned into undef arguments because they
should have been simply eliminated by the time we reach that code.

This is actually not true because there are plenty of cases where we can't
remove unused arguments. For instance, if the internal function is used in
an indirect call, it may not be possible to change the function signature.
Yet, for statically known call-sites we would still like to mark the unused
arguments as undef.

This patch enables the "set undef arguments" optimization on internal
functions when we encounter cases where internal functions cannot be
optimized. I.e., whenever an internal function is marked "live".

Differential Revision: https://reviews.llvm.org/D124699
2022-05-12 08:46:16 -07:00
..
Analysis [IR][CostModel] A scalable vector shuffle can't be an identity or reverse shuffle. 2022-05-09 21:37:25 -07:00
Assembler
Bindings [OCaml] Remove add_loop_unswitch use in test. 2022-04-29 11:09:51 +01:00
Bitcode [Bitcode] Include indirect users of BlockAddresses in bitcode 2022-05-10 16:03:42 -07:00
BugPoint
CodeGen [AArch64] Preserve chain when lowering fixed length load to SVE (PR55281) 2022-05-12 16:03:32 +02:00
DebugInfo [DebugInfo][InstrRef] Describe value sizes when spilt to stack 2022-05-12 15:52:55 +01:00
Demangle
Examples
ExecutionEngine [ORC] Fix sorting of contructors by priority 2022-05-11 09:06:41 +02:00
Feature [Passes] Remove legacy LoopUnswitch pass. 2022-04-29 10:30:49 +01:00
FileCheck
Instrumentation [test][msan] Relax order of param shadow 2022-05-07 21:17:44 -07:00
Integer
JitListener
LTO
Linker
MC [AMDGPU][GFX10] Support base+soffset+offset SMEM stores. 2022-05-12 08:48:05 +01:00
MachineVerifier
Object [AMDGPU] Add gfx11 subtarget ELF definition 2022-04-29 12:27:17 -04:00
ObjectYAML
Other [opt] Error on `opt -O# --foo-pass` 2022-05-09 09:53:24 -07:00
SafepointIRVerifier
Support
SymbolRewriter
TableGen [NFC][test] Replace hardcoded number with numeric substitution blocks 2022-05-06 08:08:34 +08:00
ThinLTO/X86
Transforms [DeadArgElim] Re-apply: Set unused arguments for internal functions 2022-05-12 08:46:16 -07:00
Unit
Verifier
YAMLParser
tools Revert "Add an error message to the default SIGPIPE handler" 2022-05-12 08:31:20 +01:00
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py [NVPTX] Integrate ptxas to LIT tests 2022-04-28 14:59:45 +03:00
lit.site.cfg.py.in [NVPTX] Integrate ptxas to LIT tests 2022-04-28 14:59:45 +03:00