https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71690
Andrew Macleod <amacleod at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Andrew Macleod <amacleod at redhat dot com> --- Not sure how to create a test case for this that isn't super dependent on debugging output formatting. regardless, the correct ranges are available if you are using ranger, so I will close this PR as "use ranger in your pass" :-) details here: https://gcc.gnu.org/pipermail/gcc/2021-June/236363.html it boils down to replacing your get_range_info calls (or SSA_NAME_RANGE_INFO or whatever is being used) with get_range_query ()->range_of_expr ()