[PATCH] D42717: [JumpThreading] sync DT for LVI analysis (PR 36133)

Brian Rzycki via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 08:35:36 PST 2018


brzycki updated this revision to Diff 134239.
brzycki added a comment.

Added asserts to `enableDT` / `disableDT` to verify both `DT` and `DisabledDT` are never both valid pointers. Added a final `LVI->enabledDT()` at the very end of `runImpl` to allow subsequent passes to use `DT` with the cached `LVI` object.


https://reviews.llvm.org/D42717

Files:
  llvm/include/llvm/Analysis/LazyValueInfo.h
  llvm/include/llvm/IR/Dominators.h
  llvm/lib/Analysis/LazyValueInfo.cpp
  llvm/lib/IR/Dominators.cpp
  llvm/lib/Transforms/Scalar/JumpThreading.cpp
  llvm/test/Transforms/JumpThreading/pr36133.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42717.134239.patch
Type: text/x-patch
Size: 9161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180214/c9a5ff35/attachment.bin>


More information about the llvm-commits mailing list