Files
clang-p2996/llvm/lib/Target/X86/X86FrameLowering.cpp
weiguozhi cdab6ffd6d [X86] Don't save/restore fp/bp around terminator (#106462)
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.
2024-09-03 13:45:29 -07:00

175 KiB