[InstCombine] add folds for icmp (umin|umax X, Y), X
authorSanjay Patel <spatel@rotateright.com>
Mon, 19 Dec 2016 17:32:37 +0000 (17:32 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 19 Dec 2016 17:32:37 +0000 (17:32 +0000)
commitdd46b52942c2e461c4e3c41747a583c1a9a89375
treeb9a40a95e55aad09220010f59e55afa996be06ce
parentf5bb1d6c4e8c96d8fa0b5cec47a68f8b06d025fd
[InstCombine] add folds for icmp (umin|umax X, Y), X

This is a follow-up to:
https://reviews.llvm.org/rL289855 (https://reviews.llvm.org/D27531)
https://reviews.llvm.org/rL290111

llvm-svn: 290118
llvm/include/llvm/IR/PatternMatch.h
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/umax-icmp.ll
llvm/test/Transforms/InstCombine/umin-icmp.ll