Re: [RFC PATCH] Optimize in VRP loads from constant arrays

2017-04-21 Thread Richard Biener
On April 21, 2017 4:06:59 PM GMT+02:00, Jakub Jelinek wrote: >Hi! > >This patch attempts to implement the optimization mentioned in >http://gcc.gnu.org/ml/gcc-patches/2017-02/msg00945.html >If we know a (relatively small) value range for ARRAY_REF index >in constant array load and the values in th

[RFC PATCH] Optimize in VRP loads from constant arrays

2017-04-21 Thread Jakub Jelinek
Hi! This patch attempts to implement the optimization mentioned in http://gcc.gnu.org/ml/gcc-patches/2017-02/msg00945.html If we know a (relatively small) value range for ARRAY_REF index in constant array load and the values in the array for all the indexes in the array are the same (and constant)