Skip to content

Commit 93f02a7

Browse files
mmereckisys_zuul
authored and
sys_zuul
committed
[Autobackout][FuncReg]Revert of change: fc68e76
Rename `psHasSideEffect` field to `hasSideEffect` in SInstrTypes. The value is valid for all stages. Change-Id: I0f22d216e5b0cd11dc2e730b66648f6ddd9de0e3
1 parent bb2d6c3 commit 93f02a7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: IGC/Compiler/CISACodeGen/CheckInstrTypes.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ CheckInstrTypes::CheckInstrTypes(IGC::SInstrTypes* instrList) : FunctionPass(ID)
8080
instrList->hasReadOnlyArray = false;
8181
instrList->hasBuiltin = false;
8282
instrList->hasFRem = false;
83-
instrList->hasSideEffect = false;
83+
instrList->psHasSideEffect = false;
8484
instrList->hasDebugInfo = false;
8585
instrList->hasAtomics = false;
8686
instrList->hasBarrier = false;
@@ -193,7 +193,7 @@ void CheckInstrTypes::visitCallInst(CallInst& C)
193193
GenISAIntrinsic::ID IID = CI->getIntrinsicID();
194194
if (IID != GenISA_OUTPUT && IID != GenISA_discard)
195195
{
196-
g_InstrTypes->hasSideEffect = true;
196+
g_InstrTypes->psHasSideEffect = true;
197197
}
198198
}
199199
}
@@ -343,7 +343,7 @@ void CheckInstrTypes::visitStoreInst(StoreInst& I)
343343
uint as = I.getPointerAddressSpace();
344344
if (as != ADDRESS_SPACE_PRIVATE)
345345
{
346-
g_InstrTypes->hasSideEffect = true;
346+
g_InstrTypes->psHasSideEffect = true;
347347
}
348348
if (as == ADDRESS_SPACE_LOCAL)
349349
{

Diff for: IGC/Compiler/CodeGenPublic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ namespace IGC
251251
bool hasReadOnlyArray;
252252
bool hasBuiltin;
253253
bool hasFRem;
254-
bool hasSideEffect; //<! shader writes to memory, does not include writing to shader outputs
254+
bool psHasSideEffect; //<! only relevant to pixel shader, has other memory writes besides RTWrite
255255
bool hasGenericAddressSpacePointers;
256256
bool hasDebugInfo; //<! true only if module contains debug info !llvm.dbg.cu
257257
bool hasAtomics;

Diff for: IGC/Compiler/CustomSafeOptPass.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ STATISTIC(Stat_DiscardRemoved, "Number of insts removed in Discard Opt");
130130

131131
bool CustomSafeOptPass::runOnFunction(Function& F)
132132
{
133-
psHasSideEffect = getAnalysis<CodeGenContextWrapper>().getCodeGenContext()->m_instrTypes.hasSideEffect;
133+
psHasSideEffect = getAnalysis<CodeGenContextWrapper>().getCodeGenContext()->m_instrTypes.psHasSideEffect;
134134
visit(F);
135135
return true;
136136
}

0 commit comments

Comments
 (0)