Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
minor refactor
  • Loading branch information
ficol authored and igcbot committed Aug 28, 2024
1 parent d564b83 commit 0fb8663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions IGC/Compiler/CISACodeGen/CShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3238,9 +3238,7 @@ CVariable* CShader::GetSymbol(llvm::Value* value, bool fromConstantPool,
}
else
{
{
var = GetNewVariable(1, ISA_TYPE_UQ, EALIGN_QWORD, WIBaseClass::UNIFORM_GLOBAL, 1, valName);
}
var = GetNewVariable(1, ISA_TYPE_UQ, EALIGN_QWORD, WIBaseClass::UNIFORM_GLOBAL, 1, valName);
symbolMapping.insert(std::pair<llvm::Value*, CVariable*>(value, var));
return var;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ static bool needRunConservatively(const Module& M) {
static bool isLoweredToRelocation(const GlobalVariable *GV)
{
StringRef name = GV->getName();
if (name == "__SubDeviceID" ||
name == BIF_FLAG_CTRL_N_S(MaxHWThreadIDPerSubDevice))
if (name == "__SubDeviceID" || name == BIF_FLAG_CTRL_N_S(MaxHWThreadIDPerSubDevice))
return true;
return false;
}
Expand Down

0 comments on commit 0fb8663

Please sign in to comment.