[InstCombine] Clean up saturing math overflow optimizations; NFC
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 28 May 2019 18:59:21 +0000 (18:59 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 28 May 2019 18:59:21 +0000 (18:59 +0000)
commitc51cdacab962a4d3a8a9a0c6327d44148f73c57d
tree327ec461de076d8b2840b7a805811a287569b144
parent2076fb28f1801f1fd3981e09014817b0e25b582c
[InstCombine] Clean up saturing math overflow optimizations; NFC

Reduce duplication and make it easier to handle signed
always-overflows conditions in the future.

llvm-svn: 361863
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp