[llvm] 5b0d1f0 - Fix a layering violation by not depending from Transforms/Utils on Transforms/Scalar.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu May 21 00:52:11 PDT 2020
Author: Benjamin Kramer
Date: 2020-05-21T09:51:58+02:00
New Revision: 5b0d1f04bf8de8089a7b0ce243a25c16c6b3917f
URL: https://github.com/llvm/llvm-project/commit/5b0d1f04bf8de8089a7b0ce243a25c16c6b3917f
DIFF: https://github.com/llvm/llvm-project/commit/5b0d1f04bf8de8089a7b0ce243a25c16c6b3917f.diff
LOG: Fix a layering violation by not depending from Transforms/Utils on Transforms/Scalar.
NFC.
Added:
Modified:
llvm/include/llvm/Transforms/Utils/CanonicalizeFreezeInLoops.h
llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/CanonicalizeFreezeInLoops.h b/llvm/include/llvm/Transforms/Utils/CanonicalizeFreezeInLoops.h
index 72fdd49a7ff5..3481a098abd7 100644
--- a/llvm/include/llvm/Transforms/Utils/CanonicalizeFreezeInLoops.h
+++ b/llvm/include/llvm/Transforms/Utils/CanonicalizeFreezeInLoops.h
@@ -13,11 +13,12 @@
#ifndef LLVM_TRANSFORMS_UTILS_CANONICALIZE_FREEZES_IN_LOOPS_H
#define LLVM_TRANSFORMS_UTILS_CANONICALIZE_FREEZES_IN_LOOPS_H
+#include "llvm/Analysis/LoopAnalysisManager.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/IR/PassManager.h"
-#include "llvm/Transforms/Scalar/LoopPassManager.h"
namespace llvm {
+class LPMUpdater;
/// A pass that canonicalizes freeze instructions in a loop.
class CanonicalizeFreezeInLoopsPass
diff --git a/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp b/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
index 771c35151ebd..79ada473c9c2 100644
--- a/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
+++ b/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
@@ -30,8 +30,9 @@
#include "llvm/Transforms/Utils/CanonicalizeFreezeInLoops.h"
#include "llvm/ADT/DenseMap.h"
-#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/SmallVector.h"
+#include "llvm/Analysis/IVDescriptors.h"
#include "llvm/Analysis/IVUsers.h"
#include "llvm/Analysis/LoopAnalysisManager.h"
#include "llvm/Analysis/LoopInfo.h"
More information about the llvm-commits
mailing list