pengfei added a comment. Maybe use `llvm-reduce` to reduce the original IR? You can use `llvm-extract --bb=FunctionName:DAGCombineBB YourIR.ll` to get the bb first. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D123652/new/ https://reviews.llvm.org/D123652