For PR1205:
authorReid Spencer <rspencer@reidspencer.com>
Tue, 27 Feb 2007 19:29:54 +0000 (19:29 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 27 Feb 2007 19:29:54 +0000 (19:29 +0000)
commita5c7472726578c0884a6e69a4f808e4aa9a5d8ed
tree207cdaf307e4b0bd575628f7bd5c4c959a8a5834
parent55fc8a43ee60fdfcc59a7fdc74c2479b84d25f28
For PR1205:
Implement review feedback:
1. Use new APInt::RoundDoubleToAPInt interface to specify the bit width so
   that we don't have to truncate or extend in constant folding.
2. Fix a pasteo in SDiv that prevented a check for overflow.
3. Fix the shift operators: undef happens when the shift amount is equal
   to the bitwidth.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34677 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp