[Mlir-commits] [mlir] [MLIR][LivenessAnalysis] Treat a public function as an external (PR #160648)

xin liu llvmlistbot at llvm.org
Tue Sep 30 13:25:00 PDT 2025


navyxliu wrote:

hi, @joker-eph 
We come up yet another idea. How about we clone the public function foo() and mark the clone private? 

```
public void foo(%unused: i32) {
return; 
}
bar() {
%x = ...
foo(%x)
}
=> clone change its uses:
public void foo(%unused: i32) {
return; 
}
private void foo_(%unused: i32) {
return; 
}
bar() {
%x = ...
foo_(%x)
}
```
then everything is in order. 

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


More information about the Mlir-commits mailing list