arsenm added a comment. What is emitting the illegal min/max? Isn't this already handled in DAGTypeLegalizer::PromoteIntegerResult? I added handling here a while ago Repository: rL LLVM http://reviews.llvm.org/D17898