[llvm] change contents of ScalarEvolution from private to protected (PR #83052)
William Moses via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 13:51:40 PDT 2024
================
@@ -0,0 +1,70 @@
+
+#include "llvm/Analysis/AliasAnalysis.h"
+#include "llvm/Analysis/LoopAnalysisManager.h"
+#include "llvm/Analysis/TargetLibraryInfo.h"
+
+#include "llvm/IR/Function.h"
+
+#include "llvm/IR/Instructions.h"
+#include "llvm/Transforms/Utils/ValueMapper.h"
+#include <deque>
+
+// TODO note this doesn't go through [loop, unreachable], and we could get more
+// performance by doing this can consider doing some domtree magic potentially
+static inline llvm::SmallPtrSet<llvm::BasicBlock *, 4>
+getGuaranteedUnreachable(llvm::Function *F) {
----------------
wsmoses wrote:
https://godbolt.org/z/KTY7sErqz
https://github.com/llvm/llvm-project/pull/83052
More information about the llvm-commits
mailing list