[PATCH] D128806: [RISCV] Fix wrong position progue_end

LiqinWeng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 05:28:17 PDT 2022


Miss_Grape added a comment.

  int global_a = 10;
  __attribute__((noinline)) int test2() {
    int a = global_a ;
    int b = 10;
    return a + b;
  }

1. Command: clang --target=riscv32 -g -S x.c -o x.s
2. After the patch is merged, the prologue will be placed in the correct position

F23620324: image.png <https://reviews.llvm.org/F23620324>


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128806



More information about the llvm-commits mailing list