Skip to content

Commit 6b72582

Browse files
committed
[SYCLNATIVECPU] revert change
1 parent cb35294 commit 6b72582

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/SYCLLowerIR/ModuleSplitter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ class DependencyGraph {
244244
Graph[UFunc].insert(V);
245245
} else if (isa<const Constant>(U)) {
246246
if (const auto *GV = dyn_cast<const GlobalVariable>(U))
247-
if (Graph[GV].insert(V).second == false)
248-
continue;
247+
Graph[GV].insert(V);
249248
// This could be a global variable or some constant expression (like
250249
// bitcast or gep). We trace users of this constant further to reach
251250
// global objects they are used by and add them to the graph.

0 commit comments

Comments
 (0)