Re: [PATCH] Avoid segfault when doing IPA-VRP but not IPA-CP (PR 93015)

2019-12-21 Thread Jan Hubicka
> Hi, > > PR 93015 testcase - an empty main function compiled with -O0 -fipa-vrp > -flto - shows that IPA-VRA can segfault when trying to access results of > an analysis that has not been performed because of zero optimization > level, -fno-ipa-cp etc. > > Rather than adding another chain of opt_

[PATCH] Avoid segfault when doing IPA-VRP but not IPA-CP (PR 93015)

2019-12-20 Thread Martin Jambor
Hi, PR 93015 testcase - an empty main function compiled with -O0 -fipa-vrp -flto - shows that IPA-VRA can segfault when trying to access results of an analysis that has not been performed because of zero optimization level, -fno-ipa-cp etc. Rather than adding another chain of opt_for_fn() the pat