<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 4, 2011, at 4:45 PM, Chad Rosier wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; 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; ">+    EVT SrcVT = MVT::i32;<br>    unsigned Opc = isThumb ? ARM::t2MOVi16 : ARM::MOVi16;<br>-    unsigned ImmReg = createResultReg(TLI.getRegClassFor(VT));<br>+    unsigned ImmReg = createResultReg(TLI.getRegClassFor(SrcVT));<br></span></blockquote></div><br><div>There's a lot of code that uses this construct as well:</div><div><br></div><div>TargetRegisterClass *RC = isThumb?ARM::rGPRRegisterClass</div><div>                                        <span class="Apple-tab-span" style="white-space:pre">           </span>    :ARM::GPRRegisterClass;</div><div><br></div><div>Yours is likely shorter if we wanted to change all of them :)</div><div><br></div><div>-eric</div><div><br></div><div><br></div></body></html>