[PATCH] D129561: [RS4GC] Handle special cases in unreachable code for memcpy/memmov

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 08:30:36 PDT 2022


apilipenko added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp:1711
+              ConstantPointerNull::get(cast<PointerType>(Derived->getType()));
+        else if (isa<UndefValue, PoisonValue>(Derived))
+          Base = Derived;
----------------
Undef and poison fall under the constant clause. I don't think that they need a special handling. 


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

https://reviews.llvm.org/D129561



More information about the llvm-commits mailing list