[PATCH] D100445: [RS4GC] Introduce intrinsics to get base ptr and offset
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 26 08:22:13 PDT 2021
reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.
LGTM w/minor comment.
As a follow up, it would be interesting to explore lowering these early during optimization when feasible. e.g. base_of(gep alloca, 15) -> alloca
================
Comment at: llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp:2402
+ for (auto *Callsite : Intrinsics)
+ if (Callsite->getIntrinsicID() ==
+ Intrinsic::experimental_gc_get_pointer_base) {
----------------
minor: use a switch here.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100445/new/
https://reviews.llvm.org/D100445
More information about the llvm-commits
mailing list