aco: do not fix_exports when program has epilog
authorQiang Yu <yuq825@gmail.com>
Thu, 17 Aug 2023 07:17:20 +0000 (15:17 +0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Oct 2023 02:36:34 +0000 (02:36 +0000)
commit6eb0910d454ea46045dac2a22724ffb4588479fd
treec16840a047d0ebb7ad3c41dbd38abe4df200eccb
parentf97a701d8986ebd4576cc3d13c148c3857b73faf
aco: do not fix_exports when program has epilog

PS with epilog does not need to fix_exports. And radeonsi use
p_end_with_regs so does not have jump instruction at last.

radeonsi may also have exec restore instruction, so may break
before reach to p_end_with_regs.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24973>
src/amd/compiler/aco_assembler.cpp
src/amd/compiler/aco_instruction_selection.cpp