Skip to content

Commit 69b8e59

Browse files
[ValueTracking] Forward-declare class instead of including header (NFC)
The header inclusion was previously causing a build time regression.
1 parent 0ba456f commit 69b8e59

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/include/llvm/Analysis/ValueTracking.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "llvm/IR/FMF.h"
2222
#include "llvm/IR/InstrTypes.h"
2323
#include "llvm/IR/Instructions.h"
24-
#include "llvm/IR/IntrinsicInst.h"
2524
#include "llvm/IR/Intrinsics.h"
2625
#include "llvm/Support/Compiler.h"
2726
#include <cassert>
@@ -42,6 +41,7 @@ class LoopInfo;
4241
class MDNode;
4342
class StringRef;
4443
class TargetLibraryInfo;
44+
class IntrinsicInst;
4545
template <typename T> class ArrayRef;
4646

4747
constexpr unsigned MaxAnalysisRecursionDepth = 6;

llvm/unittests/Analysis/ValueTrackingTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "llvm/IR/IRBuilder.h"
1717
#include "llvm/IR/InstIterator.h"
1818
#include "llvm/IR/Instructions.h"
19+
#include "llvm/IR/IntrinsicInst.h"
1920
#include "llvm/IR/LLVMContext.h"
2021
#include "llvm/IR/Module.h"
2122
#include "llvm/Support/ErrorHandling.h"

0 commit comments

Comments
 (0)