[llvm] [NFC] clang-format llvm/lib/CodeGen/InsertCodePrefetch.cpp. (PR #191959)

Rahman Lavaee via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 23:06:12 PDT 2026


https://github.com/rlavaee created https://github.com/llvm/llvm-project/pull/191959

None

>From 893c9b5d727586869d5a0476b40fe5db1bd79719 Mon Sep 17 00:00:00 2001
From: Rahman Lavaee <rahmanl at google.com>
Date: Tue, 14 Apr 2026 05:57:19 +0000
Subject: [PATCH] clang-format.

---
 llvm/lib/CodeGen/InsertCodePrefetch.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/llvm/lib/CodeGen/InsertCodePrefetch.cpp b/llvm/lib/CodeGen/InsertCodePrefetch.cpp
index 789f7ba9a1021..83a40605b5846 100644
--- a/llvm/lib/CodeGen/InsertCodePrefetch.cpp
+++ b/llvm/lib/CodeGen/InsertCodePrefetch.cpp
@@ -112,9 +112,10 @@ insertPrefetchHints(MachineFunction &MF,
   // Sort prefetch hints by their callsite index so we can insert them by one
   // pass over the block's instructions.
   for (auto &[SiteBBID, Hints] : PrefetchHintsBySiteBBID) {
-    llvm::stable_sort(Hints, [](const PrefetchHint &H1, const PrefetchHint &H2) {
-      return H1.SiteID.CallsiteIndex < H2.SiteID.CallsiteIndex;
-    });
+    llvm::stable_sort(
+        Hints, [](const PrefetchHint &H1, const PrefetchHint &H2) {
+          return H1.SiteID.CallsiteIndex < H2.SiteID.CallsiteIndex;
+        });
   }
   auto PtrTy =
       PointerType::getUnqual(MF.getFunction().getParent()->getContext());



More information about the llvm-commits mailing list