On Nov 27, 2025, Richard Biener <[email protected]> wrote: > I'm not sure I like using hard_reg_set_first_diff, esp. when > that ends up using the array version this looks like a step > backwards?
Why? The performed operations are essentially the same, the exception being the use of masking rather than shifts with caching. The former doesn't carry the implicit and undocumented assumption that neither the HARD_REG_SET nor the regno can change during the iteration, but we don't seem to rely on that. Now, if we want to stick to those assumptions, the current iterator implementation can be modified to use ffs or ctz instead. Would you prefer that? -- Alexandre Oliva, happy hacker https://blog.lx.oliva.nom.br/ Free Software Activist FSFLA co-founder GNU Toolchain Engineer More tolerance and less prejudice are key for inclusion and diversity. Excluding neuro-others for not behaving ""normal"" is *not* inclusive!
