Skip to content

Commit 0d24e13

Browse files
author
Colin Davidson
committed
Hack vec width to 2.
1 parent 978e9e9 commit 0d24e13

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

modules/compiler/vecz/source/pass.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ 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(2);
142+
//std::atoi(getenv("VEC_WIDTH")));
143+
}
140144
auto *const VU =
141145
createVectorizationUnit(Ctx, Fn, Opts, Mach.getFAM(), Check);
142146
if (!VU) {

0 commit comments

Comments
 (0)