aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPavel Samolysov <samolisov@gmail.com>2022-08-26 15:06:21 +0300
committerArthur Eubanks <aeubanks@google.com>2022-09-22 15:33:46 -0700
commit1c530500ab86f823df8d5ec1ec9f97ec4772418b (patch)
treee40ad6cb31c4b3fe43cdba1cbd407003c0c05c00 /clang/lib/Frontend/CompilerInvocation.cpp
parent60c91fd364476b3844d2c81fc73c4e32b8d04fa6 (diff)
downloadllvm-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 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions