On 6/27/23 09:19, Jan Hubicka wrote:
Hi,
as shown in the testcase (which would eventually be useful for
optimizing std::vector's push_back), ipa-prop can use context dependent ranger
queries for better value range info.
Bootstrapped/regtested x86_64-linux, OK?
Quick question.
When you call enable_ranger(), its gives you a ranger back, but it also
sets the range query for the specified context to that same instance.
So from that point forward all existing calls to get_range_query(fun)
will now use the context ranger
enable_ranger (struct function *fun, bool use_imm_uses)
<...>
gcc_checking_assert (!fun->x_range_query);
r = new gimple_ranger (use_imm_uses);
fun->x_range_query = r;
return r;
So you probably dont have to pass a ranger around? or is that ranger
you are passing for a different context?
Andrew