In function spillFPBP we already try to skip terminator, but there is a logic error, so when there is only terminator instruction in the MBB, it still tries to save/restore fp/bp around it if the terminator clobbers fp/bp, for example a tail call with ghc calling convention. Now this patch really skips terminator even if it is the only instruction in the MBB.
175 KiB
175 KiB