lsaba added inline comments. ================ Comment at: lib/Target/X86/X86OptimizeLEAs.cpp:737 + + LI1.eraseFromParent(); + cseDone = NewMI != nullptr; ---------------- should it also be erased from the LEAs list? https://reviews.llvm.org/D35014