[clang] [llvm] [clang][CodeGen] Generate follow-up metadata for loops in correct format (PR #131985)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 26 01:58:32 PDT 2025
================
@@ -170,11 +161,10 @@ LoopInfo::createUnrollAndJamMetadata(const LoopAttributes &Attrs,
MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll_and_jam.disable")));
bool FollowupHasTransforms = false;
- MDNode *Followup = createPartialUnrollMetadata(Attrs, FollowupLoopProperties,
- FollowupHasTransforms);
+ SmallVector<Metadata *, 4> Followup = createPartialUnrollMetadata(
+ Attrs, FollowupLoopProperties, FollowupHasTransforms);
SmallVector<Metadata *, 4> Args;
- Args.push_back(nullptr);
----------------
kasuga-fj wrote:
`nullptr` is used as a placeholder for LoopID, so this is no longer necessary, right?
https://github.com/llvm/llvm-project/pull/131985
More information about the llvm-commits
mailing list