[llvm] [MachineSink] Extend loop sinking capability (PR #117247)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 5 21:53:02 PST 2025


================
@@ -679,6 +691,10 @@ void MachineSinking::FindCycleSinkCandidates(
     SmallVectorImpl<MachineInstr *> &Candidates) {
   for (auto &MI : *BB) {
     LLVM_DEBUG(dbgs() << "CycleSink: Analysing candidate: " << MI);
+    if (MI.isMetaInstruction()) {
+      LLVM_DEBUG(dbgs() << "CycleSink: Dont sink meta instructions\n");
----------------
arsenm wrote:

```suggestion
      LLVM_DEBUG(dbgs() << "CycleSink: not sinking meta instruction\n");
```

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


More information about the llvm-commits mailing list