[PATCH] D96969: [AVR] Only support sp, r0 and r1 in llvm.read_register

Ayke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 09:17:33 PST 2021


aykevl created this revision.
aykevl added a reviewer: dylanmckay.
Herald added subscribers: Jim, hiraditya.
aykevl requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Most other registers are allocatable and therefore cannot be used.

This issue was flagged by the machine verifier, because reading other registers is considered reading from an undefined register.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96969

Files:
  llvm/lib/Target/AVR/AVRISelLowering.cpp
  llvm/test/CodeGen/AVR/intrinsics/named-reg-alloc.ll
  llvm/test/CodeGen/AVR/intrinsics/named-reg-special.ll
  llvm/test/CodeGen/AVR/intrinsics/read_register.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96969.324676.patch
Type: text/x-patch
Size: 4295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210218/e884cca7/attachment.bin>


More information about the llvm-commits mailing list