On Wed, Feb 07, 2018 at 08:36:31PM +0100, Marek Polacek wrote: > > > That was my first patch, but it was rejected: > > > https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00271.html > > > > Then should we update fold_indirect_ref_1 to use the new code? Is > > there a reason for them to stay out of sync? > > One of the reasons is that middle end uses poly_uint64 type but the front ends > shouldn't use them. So some of these functions will unfortunately differ.
Yeah. Part of the patch makes the two implementations slightly more similar, but I have e.g. no idea how to test for poly_uint64 that fits also in poly_int64 and the poly_int* stuff makes the two substantially different in any case. Jakub