[llvm] Only guard loop metadata that has non-debug info in it (PR #118825)

Dominik Steenken via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 01:01:14 PST 2024


================
@@ -461,6 +463,29 @@ bool Instruction::hasPoisonGeneratingMetadata() const {
          hasMetadata(LLVMContext::MD_align);
 }
 
+bool Instruction::hasLoopMetadataOtherThanDebugLoc() const {
----------------
dominik-steenken wrote:

Thanks for the review! I've renamed the method to `hasNonDebugLocMetadata`, to conform more closely to the standard, yet still express that we're specifically looking at debug locations. Does that work?

https://github.com/llvm/llvm-project/pull/118825


More information about the llvm-commits mailing list