Fix problems in the CBE and InstructionCombining which use the isMaxValue
authorReid Spencer <rspencer@reidspencer.com>
Sun, 17 Dec 2006 06:07:30 +0000 (06:07 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 17 Dec 2006 06:07:30 +0000 (06:07 +0000)
commit691458697c7e71e9b75319ef4b6b3067a525f7d9
treea9961aec71d7cc56248e6187743cb6f8e2ede0a9
parent5c7e326585f3a543388ba871c3425f7664cd9143
Fix problems in the CBE and InstructionCombining which use the isMaxValue
and isMinValue methods of ConstantInt. These have been broken since the
isSigned parameter was added. It is necessary to use the signed version
of the type in the call to isValueValidForType or else incorrect results
are returned.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32637 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constants.h