<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<div><br>
</div>
<div>+  // We will handling LR in the prologue/epilogue</div>
<div>+  // and space on the stack ourselves.</div>
</div>
<div><br>
</div>
<div>We will handling LR -> We will handle the LR</div>
<div>and space -> and allocate space</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div>+  int getLRSpillSlot() const {</div>
<div>+    assert(LRSpillSlotSet && "LR Spill slot no set");</div>
<div>+    return LRSpillSlot;</div>
</div>
<div><br>
</div>
<div>no set -> not set</div>
<div><br>
</div>
<div>+  int getFPSpillSlot() const {</div>
<div>+    assert(FPSpillSlotSet && "FP Spill slot no set");</div>
<div>+    return FPSpillSlot;</div>
<div>+  }</div>
<div>+</div>
<div><br>
</div>
<div>same here</div>
<div><br>
</div>
<div>Looks fine otherwise.</div>
<br>
<div>
<div>On 2 Dec 2013, at 11:41, Robert Lytton <<a href="mailto:robert@xmos.com">robert@xmos.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div ocsi="0" fpstyle="1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">Hi<span class="Apple-converted-space"> </span><br>
Here is a refactoring patch for the XCore target.<br>
It is in preparation for EH handling.<br>
<br>
    XCore target: Refactor LR handling<br>
   <span class="Apple-converted-space"> </span><br>
    We also narrow the liveness of FP & LR during the prologue to<br>
    reflect the actual usage of the registers.<br>
    I have been unable to construct a test to prove the previous live<br>
    range was too large.<br>
<br>
Robert<br>
<br>
</div>
<span><PatchLRHandling></span></div>
</blockquote>
</div>
<br>
</body>
</html>