Unverified Commit ab94fbba authored by Yeting Kuo's avatar Yeting Kuo Committed by GitHub
Browse files

[RISCV] Prefer Zcmp push/pop instead of save-restore calls. (#66046)

Zcmp push/pop can reduce more code size then save-restore calls. There
are two reasons,
1. Call for save-restore calls needs 4-8 bytes, but Zcmp push/pop only
needs 2 bytes.
2. Zcmp push/pop can also handles small shift of sp.
parent 613a09d9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment