Skip to content

Commit 728fd2a

Browse files
AnBodrovapszymich
authored andcommitted
Revert "Re-enable selective scalarization"
--------------------------- (cherry picked from commit 5f9ed8a)
1 parent e22d8fd commit 728fd2a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

IGC/Compiler/Optimizer/Scalarizer.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,11 @@ namespace IGC
274274

275275
} // namespace IGC
276276

277-
/// @brief By default (no argument given to this function), selective scalarization is controlled
278-
/// by the `EnableSelectiveScalarizer` regkey.
277+
/// @brief By default (no argument given to this function), selective scalarization is off.
279278
/// Selective scalarization keeps some instructions vectorized, if the vector is used as the whole entity.
280279
/// The pass builds a web of instructions protected from scalarization.
281280
/// The ending legs of the web consist of vectorial instructions such as insert and extract elements,
282281
/// vector shuffles, GenISA intrinsics and function calls.
283282
/// The vectorial instructions inside the web consist of bitcasts and PHI nodes.
284283
extern "C" llvm::FunctionPass *createScalarizerPass(
285-
IGC::SelectiveScalarizer selectiveMode = IGC::SelectiveScalarizer::Auto);
284+
IGC::SelectiveScalarizer selectiveMode = IGC::SelectiveScalarizer::Off);

IGC/common/igc_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ DECLARE_IGC_REGKEY(bool, DisableMergeStore, false, "[temp]If EnableL
485485
DECLARE_IGC_REGKEY(DWORD,MaxLiveOutThreshold, 0, "Max LiveOut Threshold in MemOpt2", false)
486486
DECLARE_IGC_REGKEY(bool, DisableScalarAtomics, false, "Disable the Scalar Atomics optimization", false)
487487
DECLARE_IGC_REGKEY(bool, EnableScalarTypedAtomics, true, "Enable the Scalar Typed Atomics optimization", false)
488-
DECLARE_IGC_REGKEY(bool, EnableSelectiveScalarizer, true, "Enable selective scalarizer on GPGPU path", true)
488+
DECLARE_IGC_REGKEY(bool, EnableSelectiveScalarizer, false, "enable selective scalarizer on GPGPU path", true)
489489
DECLARE_IGC_REGKEY(bool, HoistPSConstBufferValues, true, "Hoists up down converts for contant buffer accesses, so they an be vectorized more easily.", false)
490490
DECLARE_IGC_REGKEY(bool, EnableSingleVertexDispatch, false, "Vertex Shader Single Patch Dispatch Regkey", false)
491491
DECLARE_IGC_REGKEY(bool, allowLICM, true, "Enable LICM in IGC.", true)

0 commit comments

Comments
 (0)