From cfca06d7963fa0909f90483b42a6d7d194d01e08 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 26 Jul 2020 19:36:28 +0000 Subject: Vendor import of llvm-project master 2e10b7a39b9, the last commit before the llvmorg-12-init tag, from which release/11.x was branched. --- llvm/lib/Transforms/Utils/LowerSwitch.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/lib/Transforms/Utils/LowerSwitch.cpp') diff --git a/llvm/lib/Transforms/Utils/LowerSwitch.cpp b/llvm/lib/Transforms/Utils/LowerSwitch.cpp index 4b9d0dadfc17..34e836d9660f 100644 --- a/llvm/lib/Transforms/Utils/LowerSwitch.cpp +++ b/llvm/lib/Transforms/Utils/LowerSwitch.cpp @@ -148,13 +148,6 @@ bool LowerSwitch::runOnFunction(Function &F) { LazyValueInfo *LVI = &getAnalysis().getLVI(); auto *ACT = getAnalysisIfAvailable(); AssumptionCache *AC = ACT ? &ACT->getAssumptionCache(F) : nullptr; - // Prevent LazyValueInfo from using the DominatorTree as LowerSwitch does not - // preserve it and it becomes stale (when available) pretty much immediately. - // Currently the DominatorTree is only used by LowerSwitch indirectly via LVI - // and computeKnownBits to refine isValidAssumeForContext's results. Given - // that the latter can handle some of the simple cases w/o a DominatorTree, - // it's easier to refrain from using the tree than to keep it up to date. - LVI->disableDT(); bool Changed = false; SmallPtrSet DeleteList; -- cgit v1.2.3