Skip to content

Commit

Permalink
[NFC] Add comments about early exiting in populateKernels
Browse files Browse the repository at this point in the history
  • Loading branch information
jsji committed Jan 30, 2025
1 parent 594e3ce commit 5a6655a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/SYCLLowerIR/TargetHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ void KernelCache::populateKernels(Module &M) {
KernelData[&F] = KernelPayload{AnnotationMetadata};
}
}
// Early-exiting as there are no DependentMDNodes when no AnnotationMetadata.
if (!AnnotationMetadata)
return;

Expand Down

0 comments on commit 5a6655a

Please sign in to comment.