Skip to content

Commit e208146

Browse files
jgu222igcbot
authored andcommitted
Add a key EnableVISADCE to control visa dce.
It is off for now, so no functional change from this submit
1 parent 935c86b commit e208146

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3927,6 +3927,11 @@ namespace IGC
39273927
SaveOption(vISA_EnableScalarJmp, false);
39283928
}
39293929

3930+
if (IGC_IS_FLAG_ENABLED(EnableVISADCE))
3931+
{
3932+
SaveOption(vISA_EnableDCE, true);
3933+
}
3934+
39303935
if (IGC_IS_FLAG_ENABLED(DisableCSEL))
39313936
{
39323937
SaveOption(vISA_enableCSEL, false);

IGC/common/igc_flags.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ DECLARE_IGC_REGKEY(bool, EnableVISADotAll, false, "Enable VISA DotA
3434
DECLARE_IGC_REGKEY(bool, EnableVISADebug, false, "Runs VISA in debug mode, all optimizations disabled", false)
3535
DECLARE_IGC_REGKEY(DWORD, EnableVISAStructurizer, 1, "Enable/Disable VISA structurizer. See value defs in igc_flags.hpp.", false)
3636
DECLARE_IGC_REGKEY(bool, EnableVISAJmpi, true, "Enable/Disable VISA generating jmpi (scalar jump).", false)
37+
DECLARE_IGC_REGKEY(bool, EnableVISADCE, false, "Enable/Disable VISA DCE.", false)
3738
DECLARE_IGC_REGKEY(bool, ForceVISAStructurizer, false, "Force VISA structurizer for testing. Used on platforms in which we turns off SCF and use UCF by default", false)
3839
DECLARE_IGC_REGKEY(DWORD, NoMaskWA, 2, "Add NoMask WA using software-computed emask flag. Valid value: (two groups) \
3940
valid value: bit[1:0] : which BB to insert - 0(off), 1(divergent BB), \

0 commit comments

Comments
 (0)