https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91213
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to rdapp from comment #6) > What's the mechanism to get range information at RTL level? The only related > thing I saw in (e.g.) simplify-rtx.cc is nonzero_bits and this does not seem > to be propagated from gimple. You can get it at expand time, is that enough? Which I think the patch I had. As far as nonzero_bits there is a project being working by Segher but I don't know the status of it.