Commit 1655c44f authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Removed a useless if check



Phantom from my previous code which has been refactored.

Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <nguyentm@ornl.gov>
parent b934adc2
......@@ -364,12 +364,10 @@ void QJIT::jit_compile(const std::string &code,
// Look up the previously-generated for dependency kernels and add them to
// this kernel before compilation.
std::string dependencyCode;
if (!kernel_dependency.empty()) {
for (const auto &dep : kernel_dependency) {
const auto depIter = JIT_KERNEL_RUNTIME_CACHE.find(dep);
if (depIter != JIT_KERNEL_RUNTIME_CACHE.end()) {
dependencyCode += JIT_KERNEL_RUNTIME_CACHE[dep];
}
for (const auto &dep : kernel_dependency) {
const auto depIter = JIT_KERNEL_RUNTIME_CACHE.find(dep);
if (depIter != JIT_KERNEL_RUNTIME_CACHE.end()) {
dependencyCode += JIT_KERNEL_RUNTIME_CACHE[dep];
}
}
// Add dependency before JIT compile:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment