[compiler-rt] bbca392 - [RISCV][compiler-rt] Move RV64 __riscv_restore_1/0 directives next to labels
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 15 06:43:47 PDT 2021
Author: Jessica Clarke
Date: 2021-09-15T14:42:22+01:00
New Revision: bbca392a7f31bb76f024481292d900618988e780
URL: https://github.com/llvm/llvm-project/commit/bbca392a7f31bb76f024481292d900618988e780
DIFF: https://github.com/llvm/llvm-project/commit/bbca392a7f31bb76f024481292d900618988e780.diff
LOG: [RISCV][compiler-rt] Move RV64 __riscv_restore_1/0 directives next to labels
This looks like it was copied from the RV32 version and not properly
updated. This has no functional effect but is not good style.
Added:
Modified:
compiler-rt/lib/builtins/riscv/restore.S
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/riscv/restore.S b/compiler-rt/lib/builtins/riscv/restore.S
index 12f0d3365655..60427a7b0596 100644
--- a/compiler-rt/lib/builtins/riscv/restore.S
+++ b/compiler-rt/lib/builtins/riscv/restore.S
@@ -143,10 +143,6 @@ __riscv_restore_4:
.type __riscv_restore_3, at function
.globl __riscv_restore_2
.type __riscv_restore_2, at function
- .globl __riscv_restore_1
- .type __riscv_restore_1, at function
- .globl __riscv_restore_0
- .type __riscv_restore_0, at function
__riscv_restore_3:
__riscv_restore_2:
ld s2, 0(sp)
@@ -154,6 +150,10 @@ __riscv_restore_2:
addi sp, sp, 16
// fallthrough into __riscv_restore_1/0
+ .globl __riscv_restore_1
+ .type __riscv_restore_1, at function
+ .globl __riscv_restore_0
+ .type __riscv_restore_0, at function
__riscv_restore_1:
__riscv_restore_0:
ld s0, 0(sp)
More information about the llvm-commits
mailing list