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

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 21:00:03 PDT 2022


mkazantsev 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;
----------------
apilipenko wrote:
> Undef and poison fall under the constant clause. I don't think that they need a special handling. 
Err, you are right.


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

https://reviews.llvm.org/D129561



More information about the llvm-commits mailing list