> Looks good to me. Thanks.
> I wonder where you store the info on TARGET_MEM_REFs though? Or > is IVOPTs prohibited from messing with such refs (pessmizing them)? Yes, the latter: * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New. Return true if reverse storage order. <BIT_FIELD_REF>: Likewise. <COMPONENT_REF>: Likewise. <ARRAY_REF>: Likewise. <ARRAY_RANGE_REF>: Likewise. (split_address_cost): Likewise. Bail out if reverse storage order -- Eric Botcazou