Re: [PR 91832] Do not ICE on negative offsets in ipa-sra

2019-09-24 Thread Richard Biener
On Mon, Sep 23, 2019 at 4:17 PM Martin Jambor wrote: > > Hi, > > IPA-SRA asserts that an offset obtained from get_ref_base_and_extent > is non-negative (after it verifies it is based on a parameter). That > assumption is invalid as the testcase shows. One could probably also write a > testcase w

[PR 91832] Do not ICE on negative offsets in ipa-sra

2019-09-23 Thread Martin Jambor
Hi, IPA-SRA asserts that an offset obtained from get_ref_base_and_extent is non-negative (after it verifies it is based on a parameter). That assumption is invalid as the testcase shows. One could probably also write a testcase with defined behavior, but unless I see a reasonable one where the t