[JumpThreading][NFCI] Reuse existing DT instead of recomputation
authorMax Kazantsev <mkazantsev@azul.com>
Mon, 30 May 2022 05:48:10 +0000 (12:48 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Mon, 30 May 2022 05:48:10 +0000 (12:48 +0700)
commit503d5771b6c5e3544a9fa3be6b8d085ffbbd4057
tree41b96ef247c377dc5362f567a7af4627b47b7aa8
parent3f3a235aa2e610b5ba393228a666d55a8135ef4a
[JumpThreading][NFCI] Reuse existing DT instead of recomputation

This whole part with recomputation of BPI and BFI looks redundant,
and we tried to get rid of it in D124439. Unfortunately, it causes
some hard-to-reproduce failures due to invalid state of analysis.
Until this is investigated and fixed, let's try to reuse at least
part of available analyzes.

DT is available at this point, and there is no need to recompute it.

Please revert if you see it causing *any* behavior changes.
llvm/lib/Transforms/Scalar/JumpThreading.cpp