llvm
llvm copied to clipboard
[SYCL] Fix logic in virtual function analysis
computeFunctionToKernelsMapping did not compute the mapping correctly for leaves of its call graph if the call graph for leaves 3 levels or more deep, which results in some kernels not having inferred calls-indirectly being attached. This fixes the logic and cleans up the duplication a bit in the function.