majnemer added a comment. This needs a testcase. Also, I find removing things from the worklist incredibly, deeply suspicious. Otherwise the rest of InstCombine must be careful not to add the item to the list, no? Repository: rL LLVM http://reviews.llvm.org/D20847