[llvm] [Hexagon] Fix hexagon-copy-hoisting.mir (PR #90740)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 21:24:26 PDT 2024


================
@@ -11,23 +11,19 @@
 
 ---
 name:            f0
-tracksRegLiveness: true
+tracksRegLiveness: false
----------------
mikaelholmen wrote:

So if it's on when you run -stop-before, maybe the pass should deal with liveness?

The pass even does
```
  // Re-compute liveness
  if (Changed) {
    LiveIntervals &LIS = getAnalysis<LiveIntervals>();
    SlotIndexes *SI = LIS.getSlotIndexes();
    SI->releaseMemory();
    SI->runOnMachineFunction(Fn);
    LIS.releaseMemory();
    LIS.runOnMachineFunction(Fn);
  }
```
Yet, liveness is broken after the pass?

Why do you (try to) recompute liveness if liveness shouldn't be tracked? And why is liveness then still broken after the pass. Something doesn't look right here.


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


More information about the llvm-commits mailing list