hliao added a comment. This patch fixes a crash, which is caused by the same instruction is added as a candidate twice after commuting. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69355/new/ https://reviews.llvm.org/D69355