commit | 59cbf5ebfd7ae8f6acdca283b37974aa72e6aeb9 | [log] [tgz] |
---|---|---|
author | Christoffer Adamsen <christofferqa@google.com> | Tue Sep 03 20:13:51 2024 +0200 |
committer | Christoffer Adamsen <christofferqa@google.com> | Wed Sep 04 08:50:24 2024 +0000 |
tree | 57a21ca9b0d793d92ae36f4015d89c318de96bc8 | |
parent | 1858e6ba0cc6d1337b58f038a8045839d19598ee [diff] |
Extend effectively unused argument removal to non-class types Change-Id: I5f4d9fd0f3b914f9a83528de999fb2d6dda9bc74
diff --git a/src/main/java/com/android/tools/r8/optimize/argumentpropagation/unusedarguments/EffectivelyUnusedArgumentsAnalysis.java b/src/main/java/com/android/tools/r8/optimize/argumentpropagation/unusedarguments/EffectivelyUnusedArgumentsAnalysis.java index 7f02ea2..ef389b7 100644 --- a/src/main/java/com/android/tools/r8/optimize/argumentpropagation/unusedarguments/EffectivelyUnusedArgumentsAnalysis.java +++ b/src/main/java/com/android/tools/r8/optimize/argumentpropagation/unusedarguments/EffectivelyUnusedArgumentsAnalysis.java
@@ -227,7 +227,7 @@ if (!ParameterRemovalUtils.canRemoveUnusedParameter(appView, method, argument.getIndex())) { return; } - if (!argumentValue.getType().isClassType() || argumentValue.hasDebugUsers()) { + if (argumentValue.hasDebugUsers()) { return; } Value usedValue;