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

Investigate removing CmpNeNull bytecode

    XMLWordPrintable

Details

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes