Re: [PATCH] Minor improvement to genpreds.cc

2022-05-23 Thread Richard Biener via Gcc-patches
On Sun, May 22, 2022 at 11:03 AM Roger Sayle wrote: > > > This simple patch implements Richard Biener's suggestion in comment #6 > of PR tree-optimization/52171 (from February 2013) that the insn-preds > code generated by genpreds can avoid using strncmp when matching constant > strings of length

[PATCH] Minor improvement to genpreds.cc

2022-05-22 Thread Roger Sayle
This simple patch implements Richard Biener's suggestion in comment #6 of PR tree-optimization/52171 (from February 2013) that the insn-preds code generated by genpreds can avoid using strncmp when matching constant strings of length one. The effect of this patch is best explained by the diff of