[llvm] [LoopFusion] Fix sink instructions (PR #147501)

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 11 07:06:01 PDT 2025


================
@@ -0,0 +1,86 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -S -passes=mem2reg,loop-rotate,loop-fusion < %s 2>&1 | FileCheck %s
----------------
kasuga-fj wrote:

What I meant is, replacing the IR with the output of the following:

```sh
$ opt -S --passes=mem2reg,loop-rotate sunk-phi-nodes.ll
```

The current test doesn't contain any PHI nodes, so it seems to me that the new logic you added isn't triggered.

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


More information about the llvm-commits mailing list