If an SSA_NAME is invariant, do not calculate an on_entry value.
PR tree-optimization/117467
* gimple-range-cache.cc (ranger_cache::entry_range): Do not
invoke range_from_dom for invariant ssa-names.
return;
}
+ // If NAME is invariant, simply return the defining range.
+ if (!gori ().has_edge_range_p (name))
+ {
+ range_of_def (r, name);
+ return;
+ }
+
// Look for the on-entry value of name in BB from the cache.
// Otherwise pick up the best available global value.
if (!m_on_entry.get_bb_range (r, name, bb))