[PATCH] D111285: Fix invalid Kill on callee save on RISC-V

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 6 19:37:24 PDT 2021


jrtc27 added a comment.

I believe:

  declare void @callee(i8**)
  
  define void @caller() nounwind {
    %1 = alloca i8*
    %2 = call i8* @llvm.returnaddress(i32 0)
    store i8* %2, i8** %1
    call void @callee(i8** %1)
    ret void
  }

with -stop-after=prologepilog should work. Or perhaps better to take the MIR for that with -stop-before=prologepilog and run just prologepilog on it in the test.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111285



More information about the llvm-commits mailing list