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

Perry MacMurray via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 21:42:10 PDT 2024


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

I maybe misspoke a bit when I said that the pass doesn't deal with liveness. Recomputing the liveness is important for other passes further down the line - if a register is only live going into a basic block because of the copy instruction which has now been moved to its predecessor, it should not be marked as live in that block. However, a register being live or not does not affect the optimization made in the HexagonCopyHoisting pass itself.

The test, on the other hand, has no need to deal with liveness at all, as we are only running the HexagonCopyHoisting pass, which itself does not use this information.

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


More information about the llvm-commits mailing list