Author: Kazu Hirata Date: 2021-01-23T10:56:30-08:00 New Revision: 2f1ffa94d74d03417b60caa8706f84d42ee66e22
URL: https://github.com/llvm/llvm-project/commit/2f1ffa94d74d03417b60caa8706f84d42ee66e22 DIFF: https://github.com/llvm/llvm-project/commit/2f1ffa94d74d03417b60caa8706f84d42ee66e22.diff LOG: [llvm] Forward-declare ICFLoopSafetyInfo (NFC) LoopUtils.h needs ICFLoopSafetyInfo but relies on a forward declaration of ICFLoopSafetyInfo in IVDescriptors.h. This patch adds a forward declaration right in LoopUtils.h. While we are at it, this patch removes the one in IVDescriptors.h, where it is unnecessary. Added: Modified: llvm/include/llvm/Analysis/IVDescriptors.h llvm/include/llvm/Transforms/Utils/LoopUtils.h Removed: ################################################################################ diff --git a/llvm/include/llvm/Analysis/IVDescriptors.h b/llvm/include/llvm/Analysis/IVDescriptors.h index 6bb6c4cae0a2..28546110ba04 100644 --- a/llvm/include/llvm/Analysis/IVDescriptors.h +++ b/llvm/include/llvm/Analysis/IVDescriptors.h @@ -32,7 +32,6 @@ class PredicatedScalarEvolution; class ScalarEvolution; class SCEV; class DominatorTree; -class ICFLoopSafetyInfo; /// These are the kinds of recurrences that we support. enum class RecurKind { diff --git a/llvm/include/llvm/Transforms/Utils/LoopUtils.h b/llvm/include/llvm/Transforms/Utils/LoopUtils.h index 940747b5b2ea..951660bbab28 100644 --- a/llvm/include/llvm/Transforms/Utils/LoopUtils.h +++ b/llvm/include/llvm/Transforms/Utils/LoopUtils.h @@ -27,6 +27,7 @@ class AliasSet; class AliasSetTracker; class BasicBlock; class BlockFrequencyInfo; +class ICFLoopSafetyInfo; class IRBuilderBase; class Loop; class LoopInfo; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits