Skip to content

Commit 190a730

Browse files
esukhovigcbot
authored andcommitted
Enable partial vectorization inside IGCVectorizer
Enable partial vectorization inside IGCVectorizer
1 parent 1809b94 commit 190a730

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

IGC/Compiler/tests/IGCVectorizer/vectorizer-test-binary-fmul.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
; RUN: igc_opt -S --igc-vectorizer -dce < %s 2>&1 | FileCheck %s
1+
; REQUIRES: pvc-supported, regkeys
2+
; RUN: igc_opt -S --igc-vectorizer -dce --regkey=VectorizerEnablePartialVectorization=0 < %s 2>&1 | FileCheck %s
23

34
; CHECK: %vectorized_phi
45
; CHECK: %vector = insertelement <8 x float> undef

IGC/Compiler/tests/IGCVectorizer/vectorizer-test-ugly-chain.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
; RUN: igc_opt -S --igc-vectorizer -dce < %s 2>&1 | FileCheck %s
1+
; REQUIRES: pvc-supported, regkeys
2+
; RUN: igc_opt -S --igc-vectorizer -dce --regkey=VectorizerEnablePartialVectorization=0 < %s 2>&1 | FileCheck %s
23

34
; CHECK: %vectorized_phi
45
; CHECK: %vector = insertelement <8 x float> undef

IGC/common/igc_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ DECLARE_IGC_REGKEY(bool, VectorizerAllowEXP2, false, "Allow EXP2 instructions in
552552
DECLARE_IGC_REGKEY(bool, VectorizerAllowMAXNUM, false, "Allow MAXNUM instructions inside vectorizer", true)
553553
DECLARE_IGC_REGKEY(bool, VectorizerAllowFMADMatching, true, "Allow FADD and FMUL instructions to be matched later in the pattern match pass", true)
554554
DECLARE_IGC_REGKEY(bool, VectorizerUniformValueVectorizationEnabled, true, "Vector Emitter emits vectorized instruction for uniform values", true)
555-
DECLARE_IGC_REGKEY(bool, VectorizerEnablePartialVectorization, false, "Not fully tested option, allows to substitute scalar part with partially vectorized through extract elements", true)
555+
DECLARE_IGC_REGKEY(bool, VectorizerEnablePartialVectorization, true, "Not fully tested option, allows to substitute scalar part with partially vectorized through extract elements", true)
556556
DECLARE_IGC_REGKEY(bool, DisableOCLScalarizer, false, "Disable ScalarizeFunction pass in OCL pipeline", true)
557557
DECLARE_IGC_REGKEY(bool, DisablePHIScalarization, false, "Disable scalarization of PHINode instructions", true)
558558
DECLARE_IGC_REGKEY(bool, EnableSelectiveScalarizer, false, "enable selective scalarizer on GPGPU path", true)

0 commit comments

Comments
 (0)