From 333ac33be6f4627a8f697b8f8a617c6d5da632a6 Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Thu, 19 Mar 2026 11:10:29 +0100 Subject: [PATCH] [Analysis][NFC] Include LoopInfoImpl only in source file (#187459) There's no need to include the full LoopInfo implementation in every source file that uses LoopInfo. Pull Request: https://github.com/llvm/llvm-project/pull/187459 --- llvm/include/llvm/Analysis/LoopInfo.h | 2 +- llvm/lib/Analysis/LoopInfo.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h index fa023af70d98..d7131b909d8a 100644 --- a/llvm/include/llvm/Analysis/LoopInfo.h +++ b/llvm/include/llvm/Analysis/LoopInfo.h @@ -18,7 +18,7 @@ #include "llvm/IR/PassManager.h" #include "llvm/Pass.h" #include "llvm/Support/Compiler.h" -#include "llvm/Support/GenericLoopInfoImpl.h" +#include "llvm/Support/GenericLoopInfo.h" #include #include diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp index 0a932608f0d4..8e08a70e69cd 100644 --- a/llvm/lib/Analysis/LoopInfo.cpp +++ b/llvm/lib/Analysis/LoopInfo.cpp @@ -38,6 +38,7 @@ #include "llvm/InitializePasses.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" +#include "llvm/Support/GenericLoopInfoImpl.h" #include "llvm/Support/raw_ostream.h" using namespace llvm;