Skip to content

Commit

Permalink
[ROCM] Turn on SLP vectorization
Browse files Browse the repository at this point in the history
Signed-off-by: Nirvedh <nirvedh@gmail.com>
  • Loading branch information
nirvedhmeshram committed Oct 30, 2024
1 parent 15ea0dc commit a79358a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions compiler/plugins/target/ROCM/ROCMTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct ROCMOptions {
int wavesPerEu = 0;
std::string enableROCMUkernels = "none";
bool legacySync = true;
bool slpVectorization = false;
bool slpVectorization = true;
bool globalISel = false;

/// List of LLVM opt pass pluggins to be loaded during GPU code
Expand Down Expand Up @@ -113,11 +113,9 @@ struct ROCMOptions {
"to be passed to the target backend compiler during HIP "
"executable serialization"),
cl::ZeroOrMore, cl::cat(category));
binder.opt<bool>(
"iree-hip-llvm-slp-vec", slpVectorization, cl::cat(category),
cl::desc(
"Enable slp vectorization in llvm opt. This can have an impact on "
"performance/numerics so its turned off by default currently."));
binder.opt<bool>("iree-hip-llvm-slp-vec", slpVectorization,
cl::cat(category),
cl::desc("Enable slp vectorization in llvm opt."));
binder.opt<bool>("iree-hip-llvm-global-isel", globalISel, cl::cat(category),
cl::desc("Enable global instruction selection in llvm."));
}
Expand Down

0 comments on commit a79358a

Please sign in to comment.