[PATCH] D59636: [AArch64][SVE] Asm: error on unexpected SVE vector register type suffix

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 25 02:41:02 PDT 2019


sdesmalen added inline comments.


================
Comment at: lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp:1093
 
-    if (isSVEVectorReg<Class>() &&
-           (ElementWidth == 0 || Reg.ElementWidth == ElementWidth))
+    if (isSVEVectorReg<Class>() && (Reg.ElementWidth == ElementWidth))
       return DiagnosticPredicateTy::Match;
----------------
nit: unnecessary parentheses around `Reg.ElementWidth == ElementWidth`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59636/new/

https://reviews.llvm.org/D59636





More information about the llvm-commits mailing list