Cleanup ConstantFoldCompareInstruction:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 24 Dec 2006 18:52:08 +0000 (18:52 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 24 Dec 2006 18:52:08 +0000 (18:52 +0000)
commitb913bbaa415299b732d72239566e203fe57761d6
tree92d43efdddc22c07e35b1b612d91bfa22597fe9d
parent4fa021a1a9e062683e203d775bae897fb8b75fac
Cleanup ConstantFoldCompareInstruction:
1. Make the arguments const like the other ConstantFold* functions.
2. Clean up evaluateFCmpRelation so it makes sense for floating point.
3. Implement the use of evaluateFCmpRelation to fold floating point CEs
4. Shorten a variable name so more things fit on one line.
5. Fix various comments.

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