Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-118880

Investigate removing CmpNeNull bytecode

XMLWordPrintable

      We can replace

       

      CmpNeNull
      JmpTrue (JmpFalse)
      

      with

      CmpEqNull
      JmpFalse (JmpTrue) 

      without any overhead. Any context where we actually want to store the value can emit an additinoal Neg instruction, which should have negligible overhead.

      Any strict comparison against null or undefined will end up calling CmpStrictNotEqual
      in any case.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes