Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7249

primopts failing to optimize in if condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • primtive opts
    • None

    Description

       int[] x = new int[n]
       if (x[1]==0){}
      

      in this code primopts fail to optimize the array access in the if-condition and does dynamic access instead, even though this is not required

      Attachments

        Activity

          People

            Unassigned Unassigned
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: