public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/2] decouple adjust_range_from_scev from vr_values
@ 2020-08-04 11:54 Aldy Hernandez
  2020-08-04 11:55 ` [PATCH 1/2] Add statement context to get_value_range Aldy Hernandez
  2020-08-04 11:55 ` [PATCH 2/2] Decouple adjust_range_from_scev from vr_values and value_range_equiv Aldy Hernandez
  0 siblings, 2 replies; 16+ messages in thread
From: Aldy Hernandez @ 2020-08-04 11:54 UTC (permalink / raw)
  To: gcc-patches

The goal here is to disassociate adjust_range_from_scev from vr_values,
and value_range_equiv while we're at it.

We've already done something similar with simplify_using_ranges, where we
take in a "store" which is a class providing get_value_range().  Initially
we set it up to take a vr_values, but the ultimate purpose was to have
it work with either *vrp or the ranger.  As such, I have abstracted
out the get_value_range() method into its own abstract class from
which vr_values inherits, and provides said method.

As I did for the substitute_and_fold_engine, I future proofed
get_value_range so it takes a gimple statement.  This provides context for
the SSA being queried.  I purposely did not provide a default statement
of NULL, as I want each caller to pass a statement if available.

This patchset is divided in two: one patch to provide the additional
argument to get_value_range and one to do the ripping apart in
adjust_range_from_scev.  I will discuss the SCEV part in the relevant
patch.

Aldy



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-08-18 17:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-04 11:54 [PATCH 0/2] decouple adjust_range_from_scev from vr_values Aldy Hernandez
2020-08-04 11:55 ` [PATCH 1/2] Add statement context to get_value_range Aldy Hernandez
2020-08-11 11:53   ` PING: Fwd: " Aldy Hernandez
2020-08-14 16:03     ` Andrew MacLeod
2020-08-17  9:19       ` Aldy Hernandez
2020-08-04 11:55 ` [PATCH 2/2] Decouple adjust_range_from_scev from vr_values and value_range_equiv Aldy Hernandez
2020-08-04 13:27   ` Richard Biener
2020-08-04 14:20     ` Aldy Hernandez
2020-08-11 11:54   ` PING: Fwd: " Aldy Hernandez
2020-08-14 16:05     ` Aldy Hernandez
2020-08-14 17:16       ` Andrew MacLeod
2020-08-17 10:04         ` Aldy Hernandez
2020-08-17 15:59           ` Andrew MacLeod
2020-08-18 16:23             ` Aldy Hernandez
2020-08-18 16:38               ` Aldy Hernandez
2020-08-18 17:05                 ` Andrew MacLeod

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).