We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb35294 commit 6b72582Copy full SHA for 6b72582
llvm/lib/SYCLLowerIR/ModuleSplitter.cpp
@@ -244,8 +244,7 @@ class DependencyGraph {
244
Graph[UFunc].insert(V);
245
} else if (isa<const Constant>(U)) {
246
if (const auto *GV = dyn_cast<const GlobalVariable>(U))
247
- if (Graph[GV].insert(V).second == false)
248
- continue;
+ Graph[GV].insert(V);
249
// This could be a global variable or some constant expression (like
250
// bitcast or gep). We trace users of this constant further to reach
251
// global objects they are used by and add them to the graph.
0 commit comments