[ValueTracking] Use ConstantRange methods; NFC
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 9 Apr 2019 07:13:09 +0000 (07:13 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 9 Apr 2019 07:13:09 +0000 (07:13 +0000)
commit6e9157d5885bfbb93c07e4b0f316229734de0e01
treea81cd85a84a00332775a18ba7476b9774893c4ac
parent7bd7878d2222102248620a4c09b6b934673e326e
[ValueTracking] Use ConstantRange methods; NFC

Switch part of the computeOverflowForSignedAdd() implementation to
use Range.isAllNegative() rather than KnownBits.isNegative() and
similar. They do the same thing, but using the ConstantRange methods
allows dropping the KnownBits variables more easily in D60420.

llvm-svn: 357969
llvm/lib/Analysis/ValueTracking.cpp