[PATCH] D125000: [RS4GC] Cache BDVs and bases alogn with IsKnownBase flag (NFC)

Dmitry Makogon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 03:06:33 PDT 2022


dmakogon updated this revision to Diff 428893.
dmakogon retitled this revision from "[RS4GC] Cache IsKnownBase for bases and BDVs (NFC)" to "[RS4GC] Cache BDVs and bases alogn with IsKnownBase flag (NFC)".
dmakogon edited the summary of this revision.
dmakogon added a comment.

Implemented caching in `findBaseDefiningValue`. Added a weak assert in `setKnownBase` - it checks if the key is already present in the map and if so fails the assert if trying to push a different value from the cached one.


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

https://reviews.llvm.org/D125000

Files:
  llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125000.428893.patch
Type: text/x-patch
Size: 27150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220512/9c58f5fd/attachment.bin>


More information about the llvm-commits mailing list