[llvm] edeceb8 - remove dead code in parseRegisterList checking for ARM::RA_AUTH_CODE
Ties Stuij via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 06:54:06 PDT 2022
Author: Ties Stuij
Date: 2022-04-07T14:53:46+01:00
New Revision: edeceb8647ff9cd60cbf8d62eb7149e6fb1f81d7
URL: https://github.com/llvm/llvm-project/commit/edeceb8647ff9cd60cbf8d62eb7149e6fb1f81d7
DIFF: https://github.com/llvm/llvm-project/commit/edeceb8647ff9cd60cbf8d62eb7149e6fb1f81d7.diff
LOG: remove dead code in parseRegisterList checking for ARM::RA_AUTH_CODE
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D122577
Added:
Modified:
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 0accc9e8cb593..fdac90c0680a3 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -4528,9 +4528,7 @@ bool ARMAsmParser::parseRegisterList(OperandVector &Operands, bool EnforceOrder,
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))
More information about the llvm-commits
mailing list