Skip to content

Commit d004482

Browse files
sumesh13igcbot
authored andcommitted
Changes in code.
1 parent 481cb25 commit d004482

File tree

4 files changed

+0
-214
lines changed

4 files changed

+0
-214
lines changed

IGC/Compiler/CustomSafeOptPass.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4517,20 +4517,6 @@ bool IGCIndirectICBPropagaion::runOnFunction(Function &F) {
45174517
bool enableCompression = false;
45184518
CompressionResult compressionResult = {};
45194519

4520-
if (((int)IGC_GET_FLAG_VALUE(MinCompressionThreshold) > 0) && modMD->immConstant.sizes.size() == 1) {
4521-
std::optional<uint32_t> optionalCompressedSize =
4522-
getMaxStorageWhenStoringUniqueValues(modMD->immConstant.data, compressionResult);
4523-
if (optionalCompressedSize.has_value() && optionalCompressedSize.value() > 0 &&
4524-
static_cast<size_t>(optionalCompressedSize.value()) < storageNeeded) {
4525-
auto compressionEfficiency =
4526-
static_cast<double>(modMD->immConstant.data.size() - optionalCompressedSize.value()) * 100.0 /
4527-
modMD->immConstant.data.size();
4528-
if (compressionEfficiency > IGC_GET_FLAG_VALUE(MinCompressionThreshold)) {
4529-
storageNeeded = static_cast<size_t>(optionalCompressedSize.value());
4530-
enableCompression = true;
4531-
}
4532-
}
4533-
}
45344520

45354521
if (modMD->immConstant.data.size() && storageNeeded <= maxImmConstantSizePushedLimit) {
45364522
IRBuilder<> m_builder(F.getContext());

IGC/Compiler/tests/IGCIndirectICBPropagation/CompressedIndexTable.ll

Lines changed: 0 additions & 74 deletions
This file was deleted.

IGC/Compiler/tests/IGCIndirectICBPropagation/CompressedIndexTable2dword.ll

Lines changed: 0 additions & 124 deletions
This file was deleted.

IGC/common/igc_flags.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,6 @@ DECLARE_IGC_REGKEY(DWORD, RovOpt, 3,
565565
false)
566566
// DECLARE_IGC_REGKEY(bool, EnablePlatformFenceOpt, true, "Force fence optimization", false)
567567
DECLARE_IGC_REGKEY(bool, EnableLSCFence, true, "Enable LSC Fence in ConvertDXIL for the device has LSC", false)
568-
DECLARE_IGC_REGKEY(DWORD, MinCompressionThreshold, 50,
569-
"Set the minimum compression threshold that is desired (0 is disabling it)", true)
570568
DECLARE_IGC_REGKEY(bool, EnableSLMConstProp, true, "Enable SLM constant propagation (compute shader only).", false)
571569
DECLARE_IGC_REGKEY(
572570
bool, EnableStatelessToStateful, true,

0 commit comments

Comments
 (0)