diff options
author | Pavel Samolysov <samolisov@gmail.com> | 2022-08-26 15:06:21 +0300 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2022-09-22 15:33:46 -0700 |
commit | 1c530500ab86f823df8d5ec1ec9f97ec4772418b (patch) | |
tree | e40ad6cb31c4b3fe43cdba1cbd407003c0c05c00 /cross-project-tests | |
parent | 60c91fd364476b3844d2c81fc73c4e32b8d04fa6 (diff) | |
download | llvm-1c530500ab86f823df8d5ec1ec9f97ec4772418b.zip llvm-1c530500ab86f823df8d5ec1ec9f97ec4772418b.tar.gz llvm-1c530500ab86f823df8d5ec1ec9f97ec4772418b.tar.bz2 |
[Pipelines] Introduce DAE after ArgumentPromotion
The ArgumentPromotion pass uses Mem2Reg promotion at the end to cutting
down generated `alloca` instructions as well as meaningless `store`s and
this behavior can leave unused (dead) arguments. To eliminate the dead
arguments and therefore let the DeadCodeElimination remove becoming dead
inserted `GEP`s as well as `load`s and `cast`s in the callers, the
DeadArgumentElimination pass should be run after the ArgumentPromotion
one.
Differential Revision: https://reviews.llvm.org/D128830
Diffstat (limited to 'cross-project-tests')
-rw-r--r-- | cross-project-tests/debuginfo-tests/dexter-tests/memvars/unused-merged-value.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cross-project-tests/debuginfo-tests/dexter-tests/memvars/unused-merged-value.c b/cross-project-tests/debuginfo-tests/dexter-tests/memvars/unused-merged-value.c index 805062c..f689aae 100644 --- a/cross-project-tests/debuginfo-tests/dexter-tests/memvars/unused-merged-value.c +++ b/cross-project-tests/debuginfo-tests/dexter-tests/memvars/unused-merged-value.c @@ -1,5 +1,7 @@ -// XFAIL: * -// Incorrect location for variable "parama", see PR48719. +// Location for variable "parama" optimized out. +// Previously it would carry incorrect location +// information in debug-info, see PR48719. +// Now, the location is simply not emitted. // REQUIRES: lldb // UNSUPPORTED: system-windows |