[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 21:28:50 PST 2024


================
@@ -1412,15 +1412,15 @@ Expected<BuildMIAction &> GlobalISelEmitter::createAndImportInstructionRenderer(
   action_iterator InsertPt = InsertPtOrError.get();
   BuildMIAction &DstMIBuilder = *static_cast<BuildMIAction *>(InsertPt->get());
 
-  for (auto PhysInput : InsnMatcher.getPhysRegInputs()) {
+  for (auto PhysOp : M.physoperands()) {
----------------
s-barannikov wrote:

```suggestion
  for (const Record *Reg : make_first_range(M.physoperands())) {
```

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


More information about the llvm-commits mailing list