[PATCH] D122577: remove dead code in parseRegisterList checking for ARM::RA_AUTH_CODE
Ties Stuij via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 05:27:27 PDT 2022
stuij created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
stuij requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122577
Files:
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Index: llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
===================================================================
--- llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -4528,9 +4528,7 @@
if (Reg == EndReg)
continue;
// The register must be in the same register class as the first.
- if ((Reg == ARM::RA_AUTH_CODE &&
- RC != &ARMMCRegisterClasses[ARM::GPRRegClassID]) ||
- (Reg != ARM::RA_AUTH_CODE && !RC->contains(Reg)))
+ if (!RC->contains(Reg)
return Error(AfterMinusLoc, "invalid register in register list");
// Ranges must go from low to high.
if (MRI->getEncodingValue(Reg) > MRI->getEncodingValue(EndReg))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122577.418554.patch
Type: text/x-patch
Size: 747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220328/3d406903/attachment.bin>
More information about the llvm-commits
mailing list