[PATCH] D56005: [RFC] [LLVM] Allocatable Global Register Variables for ARM
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 20 16:35:15 PST 2019
efriedma added a comment.
Sorry about the delay.
It looks like there's a conflict between reserving r7/r11 and the use of r7/r11 as a frame pointer. (See useR7AsFramePointer.) Similarly, there's a conflict between reserving r6 and its use as a base pointer. It's okay if some combinations print an error, but we shouldn't silently miscompile.
================
Comment at: lib/Target/ARM/ARMSubtarget.h:722
+ if (i == 9 && isTargetMachO() && !HasV6Ops) {
+ return true;
+ }
----------------
Can we handle this in initSubtargetFeatures instead, like we do for rwpi? It's sort of confusing to follow.
================
Comment at: test/CodeGen/ARM/reg-alloc-no-alignment.ll:16
+declare dso_local i32 @bar(...) #1
\ No newline at end of file
----------------
Newline.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56005/new/
https://reviews.llvm.org/D56005
More information about the llvm-commits
mailing list