Re: [PATCH] sccvn: Avoid overflows in push_partial_def

2020-03-04 Thread Richard Biener
On Tue, 3 Mar 2020, Jakub Jelinek wrote: > Hi! > > The following patch attempts to avoid dangerous overflows in the various > push_partial_def HOST_WIDE_INT computations. > This is achieved by performing the subtraction offset2i - offseti in > the push_partial_def function and before doing that d

[PATCH] sccvn: Avoid overflows in push_partial_def

2020-03-03 Thread Jakub Jelinek
Hi! The following patch attempts to avoid dangerous overflows in the various push_partial_def HOST_WIDE_INT computations. This is achieved by performing the subtraction offset2i - offseti in the push_partial_def function and before doing that doing some tweaks. If a constant store (non-CONSTRUCTOR