[all-commits] [llvm/llvm-project] bd1d70: [DAG] Change isGCValue detection for statepoint lo...

serguei-katkov via All-commits all-commits at lists.llvm.org
Thu Apr 2 22:36:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bd1d70bf0e17f6d961ae0ca1cafcb12a061836c1
      https://github.com/llvm/llvm-project/commit/bd1d70bf0e17f6d961ae0ca1cafcb12a061836c1
  Author: Serguei Katkov <serguei.katkov at azul.com>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp

  Log Message:
  -----------
  [DAG] Change isGCValue detection for statepoint lowering

isGCValue should detect whether the deopt value is a GC pointer.
Currently it checks by finding the value in SI.Bases and SI.Ptrs.
However these data structures contain only those values which
have corresponding gc.relocate call. So we can miss GC value if it
does not have gc.relocate call (dead after the call).

Check GC strategy whether pointer is GC one or consider any pointer
to be GC one conservatively.

Reviewers: reames, dantrushin
Reviewed By: reames
Subscribers: hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D77130




More information about the All-commits mailing list