Status Update
Comments
sg...@google.com <sg...@google.com>
cl...@google.com <cl...@google.com> #2
It's a bug in SparseConditionalConstantPropagation.
Before
#65: -1: ConstNumber v11(32) <- 32 (INT)
: -1: Ushr v12 <- v4, v11(32)
#66: -1: StaticGet v13 <- ; field: java.io.PrintStream java.lang.System.out
: -1: Invoke-Virtual v13, v12; method: void java.io.PrintStream.println(int)
After
#65: -1: ConstNumber v11(0b100000) <- 32 (INT)
: -1: ConstNumber v12(1) <- 1 (INT)
#66: -1: StaticGet v13 <- ; field: java.io.PrintStream java.lang.System.out
: -1: Invoke-Virtual v13, v12(1); method: void java.io.PrintStream.println(int)
cl...@google.com <cl...@google.com> #3
Should be fixed in
The code is 3 months old so maybe the need to backport is limited.
ap...@google.com <ap...@google.com> #4
Branch: main
commit af99aef53c3ab244cc2021a7837fe9a018fca696
Author: Clément Béra <clementbera@google.com>
Date: Mon Jun 24 09:11:24 2024
Fix shifts in AbstractCalculator
Bug:
Change-Id: Ief9d63fae9a981d2e9800ccab8d8766abb984184
M src/main/java/com/android/tools/r8/ir/analysis/value/arithmetic/AbstractCalculator.java
M src/main/java/com/android/tools/r8/utils/BitUtils.java
A src/test/java/com/android/tools/r8/ir/ShiftIssueTest.java
ap...@google.com <ap...@google.com> #5
Branch: 8.5
commit 9d92041cd97f24d4dcbf3865fd26d76a48b9639e
Author: Clément Béra <clementbera@google.com>
Date: Mon Jun 24 13:35:18 2024
Fix shifts in AbstractCalculator
Bug:
Change-Id: Ief9d63fae9a981d2e9800ccab8d8766abb984184
M src/main/java/com/android/tools/r8/ir/analysis/value/arithmetic/AbstractCalculator.java
M src/main/java/com/android/tools/r8/utils/BitUtils.java
A src/test/java/com/android/tools/r8/ir/ShiftIssueTest.java
ap...@google.com <ap...@google.com> #6
Branch: 8.5
commit 23834c71ef57255063202688dbffdd258ad059b6
Author: Clément Béra <clementbera@google.com>
Date: Mon Jun 24 13:39:23 2024
Version 8.5.28
Bug:
Bug:
Change-Id: I642a3acb69b8f55b6417a4e66a56ec974aa52b47
M src/main/java/com/android/tools/r8/Version.java
cl...@google.com <cl...@google.com> #7
This should be fixed in 8.6 and 8.5. The reporter can even wait a few weeks for it to get into studio or manually update r8 version.
an...@google.com <an...@google.com> #8
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Koala Feature Drop | 2024.1.2 Beta 2
- Android Gradle Plugin 8.6.0-beta02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
an...@google.com <an...@google.com> #9
The fixes for this issue are now also available in:
- Android Studio Koala | 2024.1.1 Patch 2
- Android Gradle Plugin 8.5.2
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
Versions
Description
After processing the testcase source code with R8, we used JADX for decompilation and obtained the following result, which is clearly different in semantics and output from the original source code. Comparing the JADX parsing results with the source code, it is the error that eliminates one assignment of test.a, which may due to redundant store elimination. We also conducted some tests using D8 instead of R8, and no similar issues occurred, so it can be confirmed that the problem lies with R8.
Step to Reproduce
Expected Result
Actual Result
Testcase Source Code