Track the uses when writing MIR passes

Is there something like bool use_empty() or void replaceAllUsesWith(Value *V) from LLVM in Rust that can be used when writing MIR passes?

MIR is not SSA, so no. The LIR work is planned to have an SSA (+egraph?) form to help simplify this.

There's an SSA analysis pass you can run, but I'm not familiar with what you can do with the results of it.

1 Like

I should implement something similar using dominator..

Out of curiosity, could you give some more details about LIR? Are there plans for a new IR?


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.