ineg of b2i32 optimization does not trigger
Submitted by Ian Romanick
Assigned to mes..@..op.org
Link to original bug (#111578)
Description
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:
dca6cd9c src/compiler/nir/nir_opt_algebraic.py (Jason Ekstrand 2018-11-07 13:43:40 -0600 550) (('ineg', ('b2i32', 'a@32')), a),
Why doesn't the existing transformation trigger?