llvm-project/clang/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
..
APINotes
ARCMT [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
AST Reland "[AST] Add a new TemplateKind for template decls found via a using decl."" 2022-04-14 11:04:55 +02:00
ASTMerge
Analysis Reland "[analyzer] Canonicalize SymIntExpr so the RHS is positive when possible" 2022-05-12 15:40:11 +02:00
CXX Revert ""Re-apply 4b6c2cd642 "Deferred Concept Instantiation Implementation""""" 2022-05-09 09:12:05 -07:00
ClangScanDeps [Tooling/DependencyScanning] Make skipping excluded PP ranges during dependency scanning the default 2022-04-28 15:23:03 -07:00
CodeCompletion
CodeGen [DeadArgElim] Re-apply: Set unused arguments for internal functions 2022-05-12 08:46:16 -07:00
CodeGenCUDA [CUDA] Create offloading entries when using the new driver 2022-05-11 07:30:21 -04:00
CodeGenCUDASPIRV [Driver][test] Remove unused/obsoleted REQUIRES: clang-driver 2022-04-12 13:29:46 -07:00
CodeGenCXX [clang] Add the flag -ffile-reproducible 2022-05-11 23:04:36 +02:00
CodeGenCoroutines [test] Remove references to -fexperimental-new-pass-manager in tests 2022-04-11 13:29:08 -07:00
CodeGenHIP [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
CodeGenHLSL [HLSL][clang][Driver] Support validator version command line option. 2022-04-29 16:48:08 -07:00
CodeGenObjC [SimplifyCFG] Thread branches on same condition in more cases (PR54980) 2022-04-29 09:44:05 +02:00
CodeGenObjCXX [DeadArgElim] Re-apply: Set unused arguments for internal functions 2022-05-12 08:46:16 -07:00
CodeGenOpenCL [AMDGPU] Add llvm.amdgcn.sched.barrier intrinsic 2022-05-11 13:22:51 -07:00
CodeGenOpenCLCXX [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
CodeGenSYCL [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
Coverage [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) 2022-04-07 12:09:47 +02:00
CoverageMapping Revert "[InstrProfiling] No runtime hook for unused funcs" 2022-04-06 01:41:44 +00:00
Driver [Driver][test] run one test in darwin-dsymutil.c for Darwin only 2022-05-11 14:45:00 -07:00
ExtractAPI Revert "Revert "[clang][extract-api] Use relative includes"" 2022-05-04 14:52:45 -07:00
FixIt Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
Format [clang-format] Allow empty .clang-format file 2022-04-12 21:20:54 -07:00
Frontend [Clang] Introduce clang-offload-packager tool to bundle device files 2022-05-11 09:39:13 -04:00
Headers [Headers][X86] Enable basic Wdocumentation testing on X86 headers 2022-05-08 10:53:28 +01:00
Import [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
Index [NFC] Remove unfinished test case 2022-05-04 10:40:25 -07:00
Integration
InterfaceStubs
Interpreter
Layout
Lexer Warn if using `elifdef` & `elifndef` in not C2x & C++2b mode 2022-05-12 09:26:44 -04:00
LibClang
Misc [clang-fuzzer] Add a tiny tool to generate a fuzzing dictionary for clang 2022-05-09 18:25:29 +02:00
Modules [clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory 2022-05-12 07:31:19 -07:00
OpenMP Revert "[NFC][tests][AIX] XFAIL test for lack of visibility support" 2022-05-11 20:47:48 -04:00
PCH Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
Parser Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
ParserHLSL [HLSL] Adjust access specifier behavior 2022-04-28 10:37:50 -05:00
ParserSYCL
Preprocessor Warn if using `elifdef` & `elifndef` in not C2x & C++2b mode 2022-05-12 09:26:44 -04:00
Profile [NFC] Rename Instrinsic to Intrinsic 2022-04-25 18:13:23 +01:00
Refactor
Rewriter [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
Sema [AArch64][SVE] Add aarch64_sve_pcs attribute to Clang 2022-05-11 13:33:56 +00:00
SemaCUDA Fix test; we now expect a pedantic warning 2022-05-11 06:52:21 -04:00
SemaCXX Add extension diagnostic for linemarker directives 2022-05-11 06:42:00 -04:00
SemaHLSL [HLSL] Add shader attribute 2022-04-20 23:46:43 -07:00
SemaObjC Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
SemaObjCXX Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
SemaOpenCL [AMDGPU] Add llvm.amdgcn.sched.barrier intrinsic 2022-05-11 13:22:51 -07:00
SemaOpenCLCXX
SemaSYCL
SemaTemplate Revert ""Re-apply 4b6c2cd642 "Deferred Concept Instantiation Implementation""""" 2022-05-09 09:12:05 -07:00
TableGen
Templight
Tooling Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00
Unit Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
VFS [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
clang-rename
utils/update_cc_test_checks Revert "[utils] Avoid hardcoding metadata ids in update_cc_test_checks" 2022-05-10 14:04:19 -07:00
.clang-format
CMakeLists.txt [clang-fuzzer] Add a tiny tool to generate a fuzzing dictionary for clang 2022-05-09 18:25:29 +02:00
TestRunner.sh
lit.cfg.py [Clang] Introduce clang-offload-packager tool to bundle device files 2022-05-11 09:39:13 -04:00
lit.site.cfg.py.in [Driver] Change CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL to affect driver default instead of cc1 default 2022-04-13 16:58:00 -07:00