[ https://issues.apache.org/jira/browse/HARMONY-3691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexey Varlamov closed HARMONY-3691.
------------------------------------
Resolution: Fixed
Applied at r530742 + added regression test
> [drlvm][jit][opt] branch-translator handles operands with DefScope_SemiTemporary incorrectly
> --------------------------------------------------------------------------------------------
>
> Key: HARMONY-3691
> URL: https://issues.apache.org/jira/browse/HARMONY-3691
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Mikhail Fursov
> Assigned To: Alexey Varlamov
> Attachments: btr2.diff
>
>
> While working on HARMONY-3652 I found that BTR pass handles DefScope_SemiTemporary incorrectly.
> Here is a test to reproduce:
> public class Test {
> public static void main( String argv[] ) {
> System.out.println(foo());
> }
> static int foo() {
> int a = 10;
> boolean b = false;
> if ( (a > 10 ? 20 : 30) == 30 ) {
> b = true;
> }
> if (!b) {
> return 40;
> }
> return 50;
> }
> }
> RI and JET print '50' and -Xem:opt prints '40' here.
> I'm going to fix this bug today.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|