Added inst-combine for 'MIN(MIN(A, 97), 23)' and 'MAX(MAX(A, 23), 97)'
authorDinesh Dwivedi <dinesh.d@samsung.com>
Mon, 19 May 2014 07:08:32 +0000 (07:08 +0000)
committerDinesh Dwivedi <dinesh.d@samsung.com>
Mon, 19 May 2014 07:08:32 +0000 (07:08 +0000)
commitf82f16e3e6dbc0a20cf3bebaf20c83d02f4c00a2
treea36f247b2857a69d324050e1b8059bdfb0cd560c
parent06fcbd95e8daeabc1d1cd8c0292f96ecd87c0259
Added inst-combine for 'MIN(MIN(A, 97), 23)' and 'MAX(MAX(A, 23), 97)'

This removes TODO added in r208849 [http://reviews.llvm.org/D3629]

MIN(MIN(A, 97), 23) -> MIN(A, 23)
MAX(MAX(A, 23), 97) -> MAX(A, 97)

Differential Revision: http://reviews.llvm.org/D3785

llvm-svn: 209110
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/select.ll