this logic is broken for trunc to bool, replace the folding logic for trunc
authorChris Lattner <sabre@nondot.org>
Fri, 1 Dec 2006 19:22:41 +0000 (19:22 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 1 Dec 2006 19:22:41 +0000 (19:22 +0000)
commit5be662505e16c485596b53a8eabc3edb8bc88d17
treee57a01e84c57e3d4df0ad162ffe6d69fbfe9c703
parent68329b21874921be062fe77cc9268ac10da56389
this logic is broken for trunc to bool, replace the folding logic for trunc
completely, as it is trivial.  We should probably do this for the rest of the
cast operations.  This fixes ConstProp/2006-12-01-TruncBoolBug.ll.

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