Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 1066c9c

Browse files
committed
Remove dead join loop code
With range join removed, this code is dead
1 parent 61083cc commit 1066c9c

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

omniscidb/QueryEngine/LoopControlFlow/JoinLoop.cpp

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -138,24 +138,10 @@ llvm::BasicBlock* JoinLoop::codegen(
138138
if (join_loop.kind_ == JoinLoopKind::Set ||
139139
join_loop.kind_ == JoinLoopKind::MultiSet) {
140140
CHECK(iteration_domain.values_buffer->getType()->isPointerTy());
141-
const auto ptr_type =
142-
static_cast<llvm::PointerType*>(iteration_domain.values_buffer->getType());
143-
if (iteration_domain.values_buffer_is_array) {
144-
iteration_val = builder.CreateGEP(
145-
iteration_domain.values_buffer->getType()
146-
->getScalarType()
147-
->getPointerElementType(),
148-
iteration_domain.values_buffer,
149-
std::vector<llvm::Value*>{
150-
llvm::ConstantInt::get(get_int_type(32, context), 0),
151-
iteration_counter},
152-
"ub_iter_counter_" + join_loop.name_);
153-
} else {
154-
iteration_val = builder.CreateGEP(get_int_type(32, context),
155-
iteration_domain.values_buffer,
156-
iteration_counter,
157-
"ub_iter_counter_" + join_loop.name_);
158-
}
141+
iteration_val = builder.CreateGEP(get_int_type(32, context),
142+
iteration_domain.values_buffer,
143+
iteration_counter,
144+
"ub_iter_counter_" + join_loop.name_);
159145
}
160146
iterators.push_back(iteration_val);
161147
const auto have_more_inner_rows = builder.CreateICmpSLT(

omniscidb/QueryEngine/LoopControlFlow/JoinLoop.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ struct JoinLoopDomain {
4747
llvm::Value* slot_lookup_result; // for Singleton
4848
};
4949
llvm::Value* values_buffer; // used for Set
50-
bool values_buffer_is_array{false};
5150
};
5251

5352
// Any join is logically a loop. Hash joins just limit the domain of iteration,

0 commit comments

Comments
 (0)