[Mesa-dev] [Bug 111578] ineg of b2i32 optimization does not trigger

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 6 16:42:34 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=111578

            Bug ID: 111578
           Summary: ineg of b2i32 optimization does not trigger
           Product: Mesa
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: not set
         Component: glsl-compiler
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: idr at freedesktop.org
        QA Contact: intel-3d-bugs at lists.freedesktop.org

This is mostly a note to myself.

While looking at bug #111490, I noticed many instances of patterns like

        vec1 32 ssa_127 = ior ssa_125, ssa_126
        vec1 32 ssa_128 = b2i32 ssa_127
        vec1 32 ssa_129 = ineg ssa_128

I thought I'd add an optimization to clean this up, but it already exists:

dca6cd9ce651 src/compiler/nir/nir_opt_algebraic.py (Jason Ekstrand             
   2018-11-07 13:43:40 -0600  550)    (('ineg', ('b2i32', 'a at 32')), a),

Why doesn't the existing transformation trigger?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190906/16838aae/attachment-0001.html>


More information about the mesa-dev mailing list