[llvm-branch-commits] [llvm] [GVN] Support critical-edge splitting in loop-load PRE (PR #206694)
Antonio Frighetto via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jul 15 03:13:04 PDT 2026
================
@@ -355,7 +355,8 @@ exit:
ret i32 %x
}
-; TODO: We can PRE via splitting of the critical edge in the cold path.
+; TODO: not PRE'd because the pointer may be freed, so reloading is unsafe.
+; The cold-path critical edge is split once the pointer is known non-freeable.
----------------
antoniofrighetto wrote:
I'm not really sure why a TODO was originally left here. Let's either mark the function as nofree, or drop the TODO:
```suggestion
; Not PRE'd because the pointer may be freed, so reloading would be unsafe.
```
(Same below.)
https://github.com/llvm/llvm-project/pull/206694
More information about the llvm-branch-commits
mailing list