[all-commits] [llvm/llvm-project] cb112e: [X86][CodeGen] Teach frame lowering to spill/reloa...
Shengchen Kan via All-commits
all-commits at lists.llvm.org
Mon Nov 27 05:37:27 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cb112eb16cff222d8fbe7cfd3cb0834f538a691d
https://github.com/llvm/llvm-project/commit/cb112eb16cff222d8fbe7cfd3cb0834f538a691d
Author: Shengchen Kan <shengchen.kan at intel.com>
Date: 2023-11-27 (Mon, 27 Nov 2023)
Changed paths:
M llvm/lib/Target/X86/X86.td
M llvm/lib/Target/X86/X86FrameLowering.cpp
M llvm/lib/Target/X86/X86MachineFunctionInfo.h
A llvm/test/CodeGen/X86/apx/push2-pop2-cfi-seh.ll
A llvm/test/CodeGen/X86/apx/push2-pop2-vector-register.ll
A llvm/test/CodeGen/X86/apx/push2-pop2.ll
A llvm/test/CodeGen/X86/apx/pushp-popp.ll
Log Message:
-----------
[X86][CodeGen] Teach frame lowering to spill/reload registers w/ PUSHP/POPP, PUSH2[P]/POP2[P] (#73292)
#73092 supported the encoding/decoding for PUSHP/POPP
#73233 supported the encoding/decoding for PUSH2[P]/POP2[P]
In this patch, we teach frame lowering to spill/reload registers w/
these instructions.
1. Use PPX for balanced spill/reload
2. Use PUSH2/POP2 for continuous spills/reloads
3. PUSH2/POP2 must be 16B-aligned on the stack, so pad when necessary
More information about the All-commits
mailing list