[llvm] c1b7540 - [TTI] Sink IVDescriptors.h include (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 30 13:42:11 PDT 2021
Author: Nikita Popov
Date: 2021-08-30T22:41:58+02:00
New Revision: c1b7540645cf8d840385ecd6ee7f1f5c1e7c6fc2
URL: https://github.com/llvm/llvm-project/commit/c1b7540645cf8d840385ecd6ee7f1f5c1e7c6fc2
DIFF: https://github.com/llvm/llvm-project/commit/c1b7540645cf8d840385ecd6ee7f1f5c1e7c6fc2.diff
LOG: [TTI] Sink IVDescriptors.h include (NFC)
Forward declare RecurrenceDescriptor and include IVDescritor.h
only in implementation code that actually needs it.
Added:
Modified:
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h
index 9b87231442b4c..1124315f1631e 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfo.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h
@@ -21,7 +21,6 @@
#ifndef LLVM_ANALYSIS_TARGETTRANSFORMINFO_H
#define LLVM_ANALYSIS_TARGETTRANSFORMINFO_H
-#include "llvm/Analysis/IVDescriptors.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/PassManager.h"
@@ -54,6 +53,7 @@ class LoopAccessInfo;
class Loop;
class LoopInfo;
class ProfileSummaryInfo;
+class RecurrenceDescriptor;
class SCEV;
class ScalarEvolution;
class StoreInst;
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index ebd44b4be85cc..8692fe3672d7d 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -9,6 +9,7 @@
#include "AArch64TargetTransformInfo.h"
#include "AArch64ExpandImm.h"
#include "MCTargetDesc/AArch64AddressingModes.h"
+#include "llvm/Analysis/IVDescriptors.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/CodeGen/BasicTTIImpl.h"
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
index 1c475bd2f8279..4853351ececa8 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
@@ -18,6 +18,7 @@
#include "RISCVSubtarget.h"
#include "RISCVTargetMachine.h"
+#include "llvm/Analysis/IVDescriptors.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/CodeGen/BasicTTIImpl.h"
#include "llvm/IR/Function.h"
More information about the llvm-commits
mailing list