Rewrite ConstantFoldCastInstruction so that it doesn't use any of the
authorReid Spencer <rspencer@reidspencer.com>
Tue, 19 Dec 2006 03:15:47 +0000 (03:15 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 19 Dec 2006 03:15:47 +0000 (03:15 +0000)
commit390437fc6d6e7a244e7c81683576e7d27a425cea
tree153f959ac127f1e5bf0c448adb0e5b21e8d759b8
parent0b985dc84a457225033f5276e53f618d815d74ae
Rewrite ConstantFoldCastInstruction so that it doesn't use any of the
ConstRules. Remove the casting rules from ConstRules and subclasses. This
cleans up ConstantFolding significantly. Passes all tests.

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