How to write/read tree contains ssa_name in lto

Richard Biener richard.guenther@gmail.com
Mon Oct 13 06:41:48 GMT 2025


On Sat, Oct 11, 2025 at 10:32 AM ywgrit via Gcc <gcc@gcc.gnu.org> wrote:
>
> I used the functions stream_write_tree/stream_read_tree in lto. If tree
> contains ssa_name, then stream_read_tree will generate ice: cfun is null in
> wpa, so (*SSANAMES (cfun))[ix] will break the program. How to write/read
> tree contains ssa_name in lto, e.g., wpa phase?

You shouldn't - you have to abstract from this somehow as during WPA phase
a SSA name doesn't make "sense".  That said, you have to elaborate a bit on
what you are trying to do.

Richard.

> Thanks.
>
> ywgrit.


More information about the Gcc mailing list