benshi001 wrote: > I don't know how to add test case for llvm ir, can anyone give me a example? Please check UT in `llvm/test/Transforms/`, probably `llvm/test/Transforms/Scalarizer` fit your need. https://github.com/llvm/llvm-project/pull/70599