On Sat, Mar 28, 2020 at 02:06:56AM +0800, Kito Cheng wrote: > PR target/90811 > * ipa-increase-alignment.cc (increase_alignment_local_var): New. > (increase_alignment_global_var): New. > (pass_ipa_increase_alignment::gate): Remove.
I'm afraid this is too early, pass_ipa_increase_alignment is part of all_small_ipa_passes list, those are run before the LTO streaming. See cgraphunit.c (ipa_passes). For OpenMP/OpenACC offloading, this has to run after the streaming, which means either a pass in the all_regular_ipa_passes list, or much better (I don't see any advantage of this being an IPA pass) some new pass that is run very early in the all_passes list. At which point I don't really see the benefit of moving this into a new file either. Jakub