fengfeng09 wrote: > Can you add some tests to demonstrate that this patch improves the codegen? Updated. A test case is appended. https://github.com/llvm/llvm-project/pull/118045