<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 11, 2012, at 8:07 AM, Hal Finkel wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Optima; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">Also, I think the following might work well: If we add a special kind<br>of register dependency called a 'remembered' register. This is not a<br>real dependency meaning that that the instruction does not actually<br>read or write to the register, but it means that if the register<br>allocator (or anything else) swaps the referenced register for another<br>one (or a new virtual register), then the 'remembered' register needs to<br>be swapped as well. Using this I can create a late-expanded pseuso<br>which represents the necessary mask/shift operation. This operation has<br>real read/write dependencies on the GPRs being used, but also needs to<br>'remember' from which cr the input originally came. On the other<br>hand, this might create a bunch of dead-register-dependency<br>special cases in CodeGen which would not be worth the effort. What do<br>you think?</span></span></blockquote></div><br><div>I am not sure I follow completely, but it sounds like it would be quite fragile?</div><div><br></div><div>/jakob</div><div><br></div></body></html>