[LVI] Don't require DominatorTree in LVI (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 25 Mar 2020 19:02:07 +0000 (20:02 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 19 May 2020 18:21:46 +0000 (20:21 +0200)
commit5fae613a4fd3c7aed075a98761bbfde8855b5c3b
tree78a82f93fbdb3b87b6042f1732331763c7a8c031
parent520a5702680ea0b5059193a0d4ad52c217da7325
[LVI] Don't require DominatorTree in LVI (NFC)

After D76797 the dominator tree is no longer used in LVI, so we
can remove it as a pass dependency, and also get rid of the
dominator tree enabling/disabling logic in JumpThreading.

Apart from cleaning up the code, this also clarifies LVI
cache consistency, in that the LVI cache can no longer
depend on whether the DT was or wasn't enabled due to
pending DT updates at any given time.

Differential Revision: https://reviews.llvm.org/D76985
llvm/include/llvm/Analysis/LazyValueInfo.h
llvm/lib/Analysis/LazyValueInfo.cpp
llvm/lib/Transforms/Scalar/JumpThreading.cpp
llvm/lib/Transforms/Utils/LowerSwitch.cpp
llvm/test/Analysis/LazyValueAnalysis/invalidation.ll