Skip to content

Commit

Permalink
Minor comment change.
Browse files Browse the repository at this point in the history
Minor comment changes. No Functional change.
  • Loading branch information
jgu222 authored and igcbot committed Oct 10, 2023
1 parent 5049d95 commit 73c4e5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions IGC/Compiler/CISACodeGen/MemOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2301,19 +2301,19 @@ namespace {
if (K == LdStKind::IS_STORE) {
maxBytes = IGC_GET_FLAG_VALUE(MaxStoreVectorSizeInBytes);
if (maxBytes != 0) {
// legal values: [8, 32].
// legal values: [4, 32].
maxBytes = std::min(maxBytes, 32u);
maxBytes = std::max(maxBytes, 8u);
maxBytes = std::max(maxBytes, 4u);
}
else
maxBytes = STORE_DEFAULT_BYTES_PER_LANE;
}
else {
maxBytes = IGC_GET_FLAG_VALUE(MaxLoadVectorSizeInBytes);
if (maxBytes != 0) {
// legal values: [8, 32]
// legal values: [4, 32]
maxBytes = std::min(maxBytes, 32u);
maxBytes = std::max(maxBytes, 8u);
maxBytes = std::max(maxBytes, 4u);
}
else
maxBytes = LOAD_DEFAULT_BYTES_PER_LANE;
Expand Down
4 changes: 2 additions & 2 deletions IGC/common/igc_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ DECLARE_IGC_REGKEY(bool, DisableDSDualPatch, false, "Setting it to tr
DECLARE_IGC_REGKEY(bool, DisableMemOpt, false, "Disable MemOpt, merging load/store", false)
DECLARE_IGC_REGKEY(bool, DisableMemOpt2, false, "Disable MemOpt2", false)
DECLARE_IGC_REGKEY(DWORD, EnableLdStCombine, 1, "Enable load/store combine pass if set to 1 or 2 (intend to replace memopt)", true)
DECLARE_IGC_REGKEY(DWORD, MaxStoreVectorSizeInBytes, 0, "[LdStCombine] the max non-uniform vector size for the coalesced store. 0: compiler choice (default, 16(4DW)); others: 8/16/32", true)
DECLARE_IGC_REGKEY(DWORD, MaxLoadVectorSizeInBytes, 0, "[LdStCombine] the max non-uniform vector size for the coalesced load. 0: compiler choice (default, 16(4DW)); others: 8/16/32", true)
DECLARE_IGC_REGKEY(DWORD, MaxStoreVectorSizeInBytes, 0, "[LdStCombine] the max non-uniform vector size for the coalesced store. 0: compiler choice (default, 16(4DW)); others: 4/8/16/32", true)
DECLARE_IGC_REGKEY(DWORD, MaxLoadVectorSizeInBytes, 0, "[LdStCombine] the max non-uniform vector size for the coalesced load. 0: compiler choice (default, 16(4DW)); others: 4/8/16/32", true)
DECLARE_IGC_REGKEY(DWORD,MaxLiveOutThreshold, 0, "Max LiveOut Threshold in MemOpt2", false)
DECLARE_IGC_REGKEY(bool, DisableScalarAtomics, false, "Disable the Scalar Atomics optimization", false)
DECLARE_IGC_REGKEY(bool, EnableScalarTypedAtomics, true, "Enable the Scalar Typed Atomics optimization", false)
Expand Down

0 comments on commit 73c4e5e

Please sign in to comment.