Skip to content
Unverified Commit 041a786c authored by Zhaoxuan Jiang's avatar Zhaoxuan Jiang Committed by GitHub
Browse files

[AArch64] Fix pairing different types of registers when computing CSRs. (#66642)

If a function has odd number of same type of registers to save, and the
calling convention also requires odd number of such type of CSRs, an FP
register would be accidentally marked as saved when producePairRegisters
returns true.

This patch also fixes the AArch64LowerHomogeneousPrologEpilog pass not
handling AArch64::NoRegister; actually this pass must be fixed along
with the register pairing so i can write a test for it.
parent 9397e5f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment