[llvm] [MacroFusion] Support commutable instructions (PR #82751)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 00:18:44 PDT 2024


================
@@ -78,7 +88,7 @@ def TestFusion: SimpleFusion<"test-fusion", "HasTestFusion", "Test Fusion",
 // CHECK-PREDICATOR-NEXT:    }
 // CHECK-PREDICATOR-NEXT:    return true;
 // CHECK-PREDICATOR-NEXT:  }
-// CHECK-PREDICATOR-NEXT:  bool isTestFusion(
----------------
wangpc-pp wrote:

> the second time with new created commute instruction which does not have parent MF

I think the problem is here and it is not related to this PR. I don't know why there is a new created commute instruction without parent since fusion won't create new instruction. Maybe you can provide more informations, like stack trace?

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


More information about the llvm-commits mailing list