https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81430
--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> --- Created attachment 41786 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41786&action=edit set flag_reorder_blocks_and_partition to 0 in nvptx_override_options_after_change This works around the issue in the target, instead of in the common code as the previous patch did.