Skip to content

Commit 0fb8663

Browse files
ficoligcbot
authored andcommitted
minor refactor
minor refactor
1 parent d564b83 commit 0fb8663

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

IGC/Compiler/CISACodeGen/CShader.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3238,9 +3238,7 @@ CVariable* CShader::GetSymbol(llvm::Value* value, bool fromConstantPool,
32383238
}
32393239
else
32403240
{
3241-
{
3242-
var = GetNewVariable(1, ISA_TYPE_UQ, EALIGN_QWORD, WIBaseClass::UNIFORM_GLOBAL, 1, valName);
3243-
}
3241+
var = GetNewVariable(1, ISA_TYPE_UQ, EALIGN_QWORD, WIBaseClass::UNIFORM_GLOBAL, 1, valName);
32443242
symbolMapping.insert(std::pair<llvm::Value*, CVariable*>(value, var));
32453243
return var;
32463244
}

IGC/Compiler/Optimizer/OpenCLPasses/ProgramScopeConstants/ProgramScopeConstantResolution.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ static bool needRunConservatively(const Module& M) {
6262
static bool isLoweredToRelocation(const GlobalVariable *GV)
6363
{
6464
StringRef name = GV->getName();
65-
if (name == "__SubDeviceID" ||
66-
name == BIF_FLAG_CTRL_N_S(MaxHWThreadIDPerSubDevice))
65+
if (name == "__SubDeviceID" || name == BIF_FLAG_CTRL_N_S(MaxHWThreadIDPerSubDevice))
6766
return true;
6867
return false;
6968
}

0 commit comments

Comments
 (0)