Skip to content

Commit 6a6a8a0

Browse files
jaladreipsigcbot
authored andcommitted
Expose option to force linear scan RA via metadata
Expose option to force linear scan RA via metadata
1 parent 7249d00 commit 6a6a8a0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4078,7 +4078,7 @@ void CEncoder::InitVISABuilderOptions(TARGET_PLATFORM VISAPlatform, bool canAbor
40784078
SaveOption(vISA_Src1Src2OverlapWA, true);
40794079
}
40804080

4081-
if (IGC_IS_FLAG_ENABLED(UseLinearScanRA)) {
4081+
if (!IGC_IS_FLAG_SET(UseLinearScanRA) && context->getModuleMetaData()->compOpt.UseLinearScanRA || IGC_IS_FLAG_ENABLED(UseLinearScanRA)) {
40824082
SaveOption(vISA_LinearScan, true);
40834083
}
40844084

IGC/common/MDFrameWork.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ enum class ShaderTypeMD
506506
bool DisableLoopUnroll = false;
507507
unsigned ForcePushConstantMode = 0;
508508
bool UseInstructionHoistingOptimization = false;
509-
bool DisableResourceLoopDestLifeTimeStart = false;
509+
bool DisableResourceLoopDestLifeTimeStart = false;
510+
bool UseLinearScanRA = false;
510511
};
511512

512513
enum class ThreadIDLayout

0 commit comments

Comments
 (0)