File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ static void emitThumbRegPlusImmInReg(
139
139
return ;
140
140
}
141
141
142
- bool isHigh = !isARMLowRegister (DestReg) ||
142
+ bool isHigh = DestReg. isVirtual () || !isARMLowRegister (DestReg) ||
143
143
(BaseReg != 0 && !isARMLowRegister (BaseReg));
144
144
bool isSub = false ;
145
145
// Subtract doesn't have high register version. Load the negative value
@@ -153,7 +153,7 @@ static void emitThumbRegPlusImmInReg(
153
153
Register LdReg = DestReg;
154
154
if (DestReg == ARM::SP)
155
155
assert (BaseReg == ARM::SP && " Unexpected!" );
156
- if (!isARMLowRegister ( DestReg) && !DestReg. isVirtual ( ))
156
+ if (!DestReg. isVirtual ( ) && !isARMLowRegister (DestReg ))
157
157
LdReg = MF.getRegInfo ().createVirtualRegister (&ARM::tGPRRegClass);
158
158
159
159
if (NumBytes <= 255 && NumBytes >= 0 && CanChangeCC) {
You can’t perform that action at this time.
0 commit comments