[PATCH] D45187: [AMDGPU] Fix lowering enqueue_kernel

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 2 15:03:44 PDT 2018


rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp:98
+    Funcs.insert(F);
+    collectCallers(F, Funcs);
+    return;
----------------
You can call callectCallers only if F was not already in the set, e.g. if (Funcs.insert(F).second).


https://reviews.llvm.org/D45187





More information about the llvm-commits mailing list