Skip to content

Commit 615c2c1

Browse files
weiyu-chensys_zuul
authored andcommitted
Minor refactoring in computeRightBound()
Change-Id: I61fed88a0abbff7137b3af5b06ed49e9cd86d4fc
1 parent 0bed8a9 commit 615c2c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

visa/Gen4_IR.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7023,9 +7023,9 @@ void G4_INST::computeRightBound(G4_Operand* opnd)
70237023
{
70247024
associateOpndWithInst(opnd, this);
70257025

7026-
if( opnd != NULL &&
7026+
if (opnd &&
70277027
opnd->isImm() == false &&
7028-
opnd->isNullReg() == false )
7028+
opnd->isNullReg() == false)
70297029
{
70307030
bool done = false;
70317031

visa/Gen4_IR.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,6 +1993,7 @@ class G4_Operand
19931993
friend class G4_FillIntrinsic;
19941994
friend class G4_SpillIntrinsic;
19951995

1996+
19961997
public:
19971998
enum Kind {
19981999
immediate,

0 commit comments

Comments
 (0)