On Tuesday, March 6, 2018 11:10:57 AM PST Ian Romanick wrote: > On 03/05/2018 02:50 PM, Kenneth Graunke wrote: > > On Friday, February 23, 2018 3:56:05 PM PST Ian Romanick wrote: > >> From: Ian Romanick <ian.d.roman...@intel.com> > >> > >> If the previously seen instruction generates more fields than the new > >> instruction, still allow CSE to happen. This doesn't do much, but it > >> also enables a couple more shaders in the next patch. It helped quite a > >> bit in another change series that I have (at least for now) abandoned. > >> > >> No changes on Skylake, Broadwell, Iron Lake or GM45. > > > > Skylake and Broadwell sort of go without saying, they don't use this > > compiler :) > > > > It might be worth leaving some kind of comment (or renaming variables?) > > in instructions_match() to indicate that 'a' is the generating > > expression and 'b' is the second instance...since it's no longer > > exactly symmetrical. > > I thought about that... I just couldn't come up with any names that I > actually liked. Do you have any favorites? :) > > > Either way, > > Reviewed-by: Kenneth Graunke <kenn...@whitecape.org>
No, I don't really have any good suggestions either. I'd be happy with simply adding a function-level comment like this one: /** * Checks if instructions match, exactly for sources, but loosely for * destination writemasks. * * \param 'a' is the generating expression from the AEB entry. * \param 'b' is the second occurrence of the expression that we're * considering eliminating. */ Feel free to adjust as you see fit.
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list firstname.lastname@example.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev