[llvm] [GlobalISel] Support physical register inputs in nested patterns (PR #121239)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 28 09:39:10 PST 2024


================
@@ -492,9 +493,11 @@ class RuleMatcher : public Matcher {
   /// the renderers.
   StringMap<OperandMatcher *> DefinedOperands;
 
+  using PhysRegOperandsTy = MapVector<const Record *, OperandMatcher *>;
----------------
s-barannikov wrote:

---
Probably not a big deal:
```suggestion
  using PhysRegOperandsTy = SmallMapVector<const Record *, OperandMatcher *, 1>;
```


https://github.com/llvm/llvm-project/pull/121239


More information about the llvm-commits mailing list