Do not check gimple_call_chain in tree-ssa-alias

2021-11-25 Thread Jan Hubicka via Gcc-patches
Hi, this pach removes gimple_call_cahin checkin ref_maybe_used_by_call_p that disables check for CONST functions. I suppose it was meant to allow consts to read variables from the static chain but this is not what other places do. The testcase: int main() { int a =0; __attribute_

Re: Do not check gimple_call_chain in tree-ssa-alias

2021-11-25 Thread Richard Biener via Gcc-patches
On Thu, 25 Nov 2021, Jan Hubicka wrote: > Hi, > this pach removes gimple_call_cahin checkin ref_maybe_used_by_call_p that > disables check for CONST functions. I suppose it was meant to allow consts > to read variables from the static chain but this is not what other places > do. The testcase: >