[all-commits] [llvm/llvm-project] cfe8f8: Revert "Mark gc.relocate and gc.result as readnone"

serguei-katkov via All-commits all-commits at lists.llvm.org
Fri Mar 12 01:59:54 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfe8f8e0f010077f5942bce88a2fd331b90ccea7
      https://github.com/llvm/llvm-project/commit/cfe8f8e0f010077f5942bce88a2fd331b90ccea7
  Author: Serguei Katkov <serguei.katkov at azul.com>
  Date:   2021-03-12 (Fri, 12 Mar 2021)

  Changed paths:
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/lib/Transforms/Scalar/EarlyCSE.cpp
    M llvm/test/Transforms/EarlyCSE/gc_relocate.ll
    M llvm/test/Transforms/GVN/gc_relocate.ll
    A llvm/test/Transforms/LICM/gc-relocate.ll

  Log Message:
  -----------
  Revert "Mark gc.relocate and gc.result as readnone"

As readnone function they become movable and LICM can hoist them
out of a loop. As a result in LCSSA form phi node of type token
is created. No one is ready that GCRelocate first operand is phi node
but expects to be token.

GVN test were also updated, it seems it does not do what is expected.
Test for LICM is also added.

This reverts commit f352463ade6e49c3b0275f296d9190d828b7630b.




More information about the All-commits mailing list