[llvm-commits] [PATCH] Simplify RegScavenger::FindUnusedReg

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Aug 17 11:13:29 PDT 2009


Hi,

The attached patch simplifies RegScavenger::FindUnusedReg() by  
removing the "Candidates" argument. It also fixes a potential bug  
where FindUnusedReg() could return a register with in-use aliases.

The RegScavenger is now tracking spilled callee saved registers, so  
there is no longer a need for the "Candidates" argument or the  
"ExCalleeSaved" variant.

Since I am changing the RegScavenger API just before the upcoming code  
freeze, I thought I had better ask for a review before committing.

/jakob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: simpl-unused.patch
Type: application/octet-stream
Size: 7003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090817/c41dda3c/attachment.obj>
-------------- next part --------------



More information about the llvm-commits mailing list