File tree Expand file tree Collapse file tree 1 file changed +20
-19
lines changed Expand file tree Collapse file tree 1 file changed +20
-19
lines changed Original file line number Diff line number Diff line change @@ -4229,16 +4229,18 @@ class G4_SpillIntrinsic : public G4_InstIntrinsic
4229
4229
4230
4230
void computeRightBound (G4_Operand* opnd)
4231
4231
{
4232
- uint16_t numReg = 0 ;
4233
- if (opnd == getSrc (1 ))
4234
- {
4235
- numReg = asSpillIntrinsic ()->getNumRows ();
4236
- }
4237
- else if (opnd->isSrcRegRegion () && opnd == getSrc (0 ))
4238
- {
4239
- numReg = 1 ;
4232
+ if (opnd) {
4233
+ uint16_t numReg = 0 ;
4234
+ if (opnd == getSrc (1 ))
4235
+ {
4236
+ numReg = asSpillIntrinsic ()->getNumRows ();
4237
+ }
4238
+ else if (opnd->isSrcRegRegion () && opnd == getSrc (0 ))
4239
+ {
4240
+ numReg = 1 ;
4241
+ }
4242
+ computeSpillFillOperandBound (opnd, opnd->left_bound , numReg);
4240
4243
}
4241
- computeSpillFillOperandBound (opnd, opnd->left_bound , numReg);
4242
4244
}
4243
4245
4244
4246
private:
@@ -4303,17 +4305,16 @@ class G4_FillIntrinsic : public G4_InstIntrinsic
4303
4305
4304
4306
void computeRightBound (G4_Operand* opnd)
4305
4307
{
4306
- uint16_t numReg = 0 ;
4307
- if (opnd == getDst ())
4308
- {
4309
- numReg = asFillIntrinsic ()->getNumRows ();
4310
- }
4311
- else if (opnd-> isSrcRegRegion () &&
4312
- (opnd == getSrc ( 0 ) || opnd == getSrc ( 1 )))
4313
- {
4314
- numReg = 1 ;
4308
+ if (opnd) {
4309
+ uint16_t numReg = 0 ;
4310
+ if (opnd == getDst ()) {
4311
+ numReg = asFillIntrinsic ()->getNumRows ();
4312
+ } else if (opnd-> isSrcRegRegion () &&
4313
+ (opnd == getSrc ( 0 ) || opnd == getSrc ( 1 ))) {
4314
+ numReg = 1 ;
4315
+ }
4316
+ computeSpillFillOperandBound (opnd, opnd-> left_bound , numReg) ;
4315
4317
}
4316
- computeSpillFillOperandBound (opnd, opnd->left_bound , numReg);
4317
4318
}
4318
4319
4319
4320
private:
You can’t perform that action at this time.
0 commit comments