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: default avatarThien Nguyen <nguyentm@ornl.gov>
parent b934adc2
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -364,14 +364,12 @@ 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];
    }
  }
  }
  // Add dependency before JIT compile:
  new_code = dependencyCode + new_code;
  // std::cout << "New code:\n" << new_code << "\n";