This is an archive of the discontinued LLVM Phabricator instance.

x86: Don't mark live-in callee-saved registers as killed
Needs ReviewPublic

Authored by Zoxc on Aug 30 2015, 10:27 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

This makes it possible to use callee-saved registers as arguments to a function. I have a custom calling convention on x64 which does this (it's the System V ABI with RBX added in first place to the allowed registers).

Should such an calling convention be added to LLVM so that we can test for callee-saved register being live-in?

Diff Detail

Repository
rL LLVM

Event Timeline

Zoxc updated this revision to Diff 33540.Aug 30 2015, 10:27 AM
Zoxc retitled this revision from to x86: Don't mark live-in callee-saved registers as killed.
Zoxc updated this object.
Zoxc set the repository for this revision to rL LLVM.
Zoxc added a subscriber: llvm-commits.