[Support] Add KnownBits::getSignedMinValue/getSignedMaxValue helpers.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 24 Dec 2020 12:07:55 +0000 (12:07 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 24 Dec 2020 14:10:12 +0000 (14:10 +0000)
commit6895581fd2c1cbe1a51d157d40219b7bb51a9cd5
treec62244eb5182938d9d1db0d119f19bb0a5e28289
parentfb468953082c1fe97d42e6eabe8d3511bdb4054f
[Support] Add KnownBits::getSignedMinValue/getSignedMaxValue helpers.

Add unit test coverage - a followup will update InstCombineCompares.cpp to use this and could be used by D86578 as well.
llvm/include/llvm/Support/KnownBits.h
llvm/unittests/Support/KnownBitsTest.cpp