Skip to content

Commit 5a6655a

Browse files
committed
[NFC] Add comments about early exiting in populateKernels
1 parent 594e3ce commit 5a6655a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/SYCLLowerIR/TargetHelpers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ void KernelCache::populateKernels(Module &M) {
7676
KernelData[&F] = KernelPayload{AnnotationMetadata};
7777
}
7878
}
79+
// Early-exiting as there are no DependentMDNodes when no AnnotationMetadata.
7980
if (!AnnotationMetadata)
8081
return;
8182

0 commit comments

Comments
 (0)