arsenm added a comment. In https://reviews.llvm.org/D52765#1252050, @arsenm wrote: > This is already done? See test/Transforms/InstCombine/{minnum,maxnum}.ll Turns out I can't read Repository: rL LLVM https://reviews.llvm.org/D52765