From 2cdc6d35c4182074ca0c8ce2dc387b6e9c0ca7a6 Mon Sep 17 00:00:00 2001 From: Mengchi Zhang Date: Mon, 6 Jun 2022 12:48:23 -0700 Subject: [PATCH] [FRONTEND] Give col_per_thread an initial value to make the compiler happy (#535) Signed-off-by: Mengchi Zhang --- lib/codegen/selection/generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codegen/selection/generator.cc b/lib/codegen/selection/generator.cc index 5397ceefe..a04949dc5 100644 --- a/lib/codegen/selection/generator.cc +++ b/lib/codegen/selection/generator.cc @@ -2359,7 +2359,7 @@ void generator::visit_reducend_inst_fast(ir::reduce_inst* x, std::function arg_idxs = idxs_.at(arg); size_t n_elts = arg_idxs.size(); - unsigned col_per_thread; + unsigned col_per_thread = 0; Value* warp_i; Value* warp_j; if(analysis::scanline_layout* scanline = layout->to_scanline()){