Skip to content

Commit 1fa2ca2

Browse files
bcheng0127igcbot
authored andcommitted
SWSB update
1 parent 01ff472 commit 1fa2ca2

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4126,6 +4126,11 @@ namespace IGC
41264126
SaveOption(vISA_SWSBStitch, true);
41274127
}
41284128

4129+
if (IGC_IS_FLAG_ENABLED(DisableRegDistDep))
4130+
{
4131+
SaveOption(vISA_disableRegDistDep, true);
4132+
}
4133+
41294134
if (IGC_IS_FLAG_ENABLED(EnableForceDebugSWSB) ||
41304135
IGC_IS_FLAG_ENABLED(EnableSWSBInstStall) ||
41314136
IGC_IS_FLAG_ENABLED(EnableSWSBTokenBarrier))

IGC/common/igc_flags.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ DECLARE_IGC_REGKEY(DWORD,SWSBTokenNum, 0, "Total tokens use
7676
DECLARE_IGC_REGKEY(bool, EnableGroupScheduleForBC, false, "Enable bank conflict reduction in scheduling.", true)
7777
DECLARE_IGC_REGKEY(bool, EnableIGASWSB, false, "Use IGA for SWSB", true)
7878
DECLARE_IGC_REGKEY(bool, EnableSWSBStitch, false, "Insert dependence resolve for kernel stitching", true)
79+
DECLARE_IGC_REGKEY(bool, DisableRegDistDep, false, "distable regDist dependence", true)
7980
DECLARE_IGC_REGKEY(bool, EnableQuickTokenAlloc, false, "Insert dependence resolve for kernel stitching", true)
8081
DECLARE_IGC_REGKEY(bool, SetA0toTdrForSendc, false, "Set A0 to tdr0 before each sendc/sendsc", true)
8182
DECLARE_IGC_REGKEY(bool, ReplaceIndirectCallWithJmpi, false, "Replace indirect call with jmpi instruction (HW WA)", true)

visa/Gen4_IR.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ typedef struct _SWSBInfo
606606

607607
protected:
608608
//unsigned char depDistance = 0;
609-
bool operandTypeIndicated = true;
609+
bool operandTypeIndicated = false;
610610
bool isClosestALUType_ = false;
611611

612612
SWSBInfo swsb;

visa/include/VISAOptions.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ DEF_VISA_OPTION(vISA_noSendSrcDstOverlap, ET_BOOL, "-noSendSrcDstOver
254254
DEF_VISA_OPTION(vISA_cloneSampleInst, ET_BOOL, "-cloneSampleInst", UNUSED, false)
255255
DEF_VISA_OPTION(vISA_cloneEvaluateSampleInst, ET_BOOL, "-cloneEvaluateSampleInst", UNUSED, false)
256256
DEF_VISA_OPTION(vISA_expandMulPostSchedule, ET_BOOL, "-expandMulPostSchedule", UNUSED, true)
257+
DEF_VISA_OPTION(vISA_disableRegDistDep, ET_BOOL, "-disableRegDistDep", UNUSED, false)
257258

258259
//=== HW debugging options ===
259260
DEF_VISA_OPTION(vISA_GenerateDebugInfo, ET_BOOL, "-generateDebugInfo", UNUSED, false)

0 commit comments

Comments
 (0)