llvm-project
9b8be745 - [AArch64][llvm] Remove redundant code in tryParseSVEPattern() (#230043)

Commit
41 days ago
[AArch64][llvm] Remove redundant code in tryParseSVEPattern() (#230043) Remove redundant code in `tryParseSVEPattern()`. This method was duplicating work already done by the general operand parser. For numeric operands, it now returns `NoMatch` to let the general parser handle these. `isSVEPattern()` checks that the operand is a constant immediate in [0, 31]. This was already doing the range checking and remains unchanged. Previously it also rejected nonconstant expressions early; the matcher already rejects those. The custom parser is still needed for named patterns, but it doesn’t need to handle ordinary immediates as well.
Author
Parents
Loading