[all-commits] [llvm/llvm-project] 99e006: [PowerPC] Fix return address computation for "__bu...

Victor Huang via All-commits all-commits at lists.llvm.org
Thu Aug 12 08:15:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 99e00663d4cd13b0c296380147ef3f53a2172fbf
      https://github.com/llvm/llvm-project/commit/99e00663d4cd13b0c296380147ef3f53a2172fbf
  Author: Victor Huang <wei.huang at ibm.com>
  Date:   2021-08-12 (Thu, 12 Aug 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/2010-05-03-retaddr1.ll
    A llvm/test/CodeGen/PowerPC/retaddr_multi_levels.ll

  Log Message:
  -----------
  [PowerPC] Fix return address computation for "__builtin_return_address"

When depth > 0, callee frame address is used to compute the return address of
callee producing improper return address. This patch adds the fix to use caller
frame address to compute the return address of callee.

Reviewed By: nemanjai, #powerpc

Differential revision: https://reviews.llvm.org/D107646




More information about the All-commits mailing list