[PATCH] D41134: [compiler-rt] [builtins] Implement __chkstk for arm64 windows
Saleem Abdulrasool via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 14 17:44:24 PST 2017
compnerd added inline comments.
================
Comment at: lib/builtins/aarch64/chkstk.S:18
+DEFINE_COMPILERRT_FUNCTION(__chkstk)
+ lsl x16, x15, #4
+ mov x17, sp
----------------
I'm not sure I understand the reasoning for this entirely. Why the `lsl x16, x15, #4` and then `subs x16, x16, #1000`? Wouldn't it be equal to just doing `subs x15, x15, #100` each time and entirely avoid the shift?
================
Comment at: lib/builtins/aarch64/chkstk.S:24
+1:
+ sub x17, x17, #0x1000
+ subs x16, x16, #0x1000
----------------
Can we not use `PAGE_SIZE` here?
https://reviews.llvm.org/D41134
More information about the llvm-commits
mailing list