[PATCH] D55974: [GVN] Update BlockRPONumber prior to use.

Matt Davis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 8 13:07:37 PST 2019


mattd updated this revision to Diff 180721.
mattd marked an inline comment as done.
mattd added a comment.

- Add a bool to GVN that tracks the status (valid or invalid) of the BlockRPONumber map.
- Use that flag to indicate that the BlockRPONumber is invalid when blocks are added to the function being analyzed.
- Make the BlockRPONumber map:  `DenseMap<AssertingVH<BasicBlock>, uint32_t>`




CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55974/new/

https://reviews.llvm.org/D55974

Files:
  include/llvm/Transforms/Scalar/GVN.h
  lib/Transforms/Scalar/GVN.cpp
  test/Transforms/GVN/nonescaping-malloc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55974.180721.patch
Type: text/x-patch
Size: 4742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190108/4a59fab3/attachment.bin>


More information about the llvm-commits mailing list