tclin914 wrote: I create a PR https://github.com/llvm/llvm-project/pull/137132 to refactor the code first. That can handle the case logicop+sext/zext whether or not the src types are the same in one place. https://github.com/llvm/llvm-project/pull/136815