Skip to content

Commit 1ff9280

Browse files
author
Colin Davidson
committed
Hack vec width to 4.
1 parent 978e9e9 commit 1ff9280

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

modules/compiler/vecz/source/pass.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,12 @@ PreservedAnalyses RunVeczPass::run(Module &M, ModuleAnalysisManager &MAM) {
136136
Opts = *AutoSGOpts;
137137
}
138138
}
139-
139+
if (Opts.vecz_auto && !getenv("VEC_NORMAL_WIDTH")) {
140+
Opts.vecz_auto = false;
141+
Opts.factor = compiler::utils::VectorizationFactor::getFixedWidth(4);
142+
//std::atoi(getenv("VEC_WIDTH")));
143+
printf("__CSD__ Using vec width %d\n", (int) Opts.factor.getKnownMin());
144+
}
140145
auto *const VU =
141146
createVectorizationUnit(Ctx, Fn, Opts, Mach.getFAM(), Check);
142147
if (!VU) {

0 commit comments

Comments
 (0)