<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 29, 2011, at 6:20 PM, Eric Christopher 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; ">-static const TargetRegisterClass *<br>-isAllocatableRegister(unsigned Reg, MachineFunction &MF,<br>-                      const TargetLowering &TLI,<br>-                      const TargetRegisterInfo *TRI) {<br></span></span></blockquote>...<br><blockquote type="cite"><span class="Apple-style-span" style="font-family: monospace; ">-  for (TargetRegisterInfo::regclass_iterator RCI = TRI->regclass_begin(),<br>-       E = TRI->regclass_end(); RCI != E; ++RCI) {<br></span></blockquote>...</div><blockquote type="cite"><span class="Apple-style-span" style="font-family: monospace; ">-    for (TargetRegisterClass::vt_iterator I = RC->vt_begin(), E = RC->vt_end();<br>-         I != E; ++I) {<br>-      if (TLI.isTypeLegal(*I)) {<br>-        // If we have already found this register in a different register class,<br></span></blockquote><div><blockquote type="cite"><span class="Apple-style-span" style="font-family: monospace; ">-        // choose the one with the largest VT specified.  For example, on<br>-        // PowerPC, we favor f64 register classes over f32.<br>-        if (FoundVT == MVT::Other || FoundVT.bitsLT(*I)) {<br></span></blockquote></div><div><br></div><div>Awesome! That function was particularly special.</div><div><br></div><div>Thanks</div><div>/jakob</div><div><br></div></body></html>