[all-commits] [llvm/llvm-project] 0ecb12: [STATEPOINT] Force implicit-def for lr register.

serguei-katkov via All-commits all-commits at lists.llvm.org
Mon Nov 15 21:52:28 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ecb12a27ff63eca481cef5ed67ce654a8f111b4
      https://github.com/llvm/llvm-project/commit/0ecb12a27ff63eca481cef5ed67ce654a8f111b4
  Author: Serguei Katkov <serguei.katkov at azul.com>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/statepoint-call-lowering.ll

  Log Message:
  -----------
  [STATEPOINT] Force implicit-def for lr register.

STATEPOINT instruction behavior is similar to call instruction.
In aarch64 BL instruction implicitly define lr register, so
STATEPOINT instruction should do the same.
However STATEPOINT is a general pseudo instruction and I could not find
a way to override list of implicit defs for specific target.

So this patch post processes inserting STATEPOINT instruction by
adding implisit dead def for lr.

Reviewers: reames, loicottet, ostannard
Reviewed By: reames
Subscribers: danilaml, hiraditya, kristof.beyls, llvm-commits, yrouban
Differential Revision: https://reviews.llvm.org/D111114




More information about the All-commits mailing list