OSDN Git Service

[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)
commit8483085399c564006a55632193489627a6d04b5a
tree65902b76c91f5b8cdd401787890464adc9dfb39d
parent43aa7bdb28c504a30f0119928b0975bd29c2729f
[InstCombine] Clean up saturing math overflow optimizations; NFC

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361863 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp