[llvm] [TableGen] Add `PreferSmallerInstructions` for Targets. (PR #83587)
Alfie Richards via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 03:18:18 PDT 2024
AlfieRichardsArm wrote:
```CPP
- if (A.couldMatchAmbiguouslyWith(B, Target)) {
+ bool PreferSmallerInstructions =
+ AsmParser->getValueAsBit("PreferSmallerInstructions");
+ if (A.couldMatchAmbiguouslyWith(B, PreferSmallerInstructions)) {
```
> @s-barannikov: Same for shouldBeMatchedBefore above.
Fixed.
https://github.com/llvm/llvm-project/pull/83587
More information about the llvm-commits
mailing list