Re: [PATCH 1/3] Vect peeling cost model

2017-05-05 Thread Richard Biener
On Thu, May 4, 2017 at 11:04 AM, Robin Dapp wrote: > Some refactoring and definitions to use for (unknown) DR_MISALIGNMENT, +#define DR_HAS_NEGATIVE_STEP(DR) \ + tree_int_cst_compare (DR_STEP (DR), size_zero_node) < 0 this will ICE for non-constant DR_STEP so isn't a suitable define. If you wa

[PATCH 1/3] Vect peeling cost model

2017-05-04 Thread Robin Dapp
Some refactoring and definitions to use for (unknown) DR_MISALIGNMENT, gcc/ChangeLog: 2017-04-26 Robin Dapp * tree-data-ref.h (struct data_reference): Create DR_HAS_NEGATIVE_STEP. * tree-vectorizer.h (dr_misalignment): Define DR_MISALIGNMENT. * tree-vect-data-refs.c (v