Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#446 number of instructions affected by optimization can't be -ve

open
5
2012-05-18
2012-05-18
Nabil Shams
No

Number of instructions affected by a particular optimization can't negative. It must be due to overflow. I think it is a low priority bug, but its good to be fixed.

Discussion

  • Nabil Shams
    Nabil Shams
    2012-05-18

    Proguard output window

     
    Attachments
  • Eric Lafortune
    Eric Lafortune
    2012-05-18

    Thanks for the report. There are a few cases where ProGuard has to add one or more instructions to make sure the code is valid. In some rare cases, it is too conservative, and it is adding more than it is removing; hence a negative number (you can see the difference of both numbers being computed near the end of Optimizer.java)

    Now, 1386 added instructions really seems like a lot. Can you tell if there is anything special about the code? Do you happen to have a smaller test case?

     
  • Eric Lafortune
    Eric Lafortune
    2012-05-18

    • labels: 429267 --> Optimization