Fix three bugs:
authorChris Lattner <sabre@nondot.org>
Tue, 8 Jul 2008 05:46:34 +0000 (05:46 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 8 Jul 2008 05:46:34 +0000 (05:46 +0000)
commit155a490258a3a58f77ead53daa2078c3898938b5
treeea8222f9f71bf9bbd8cf93d5c4c819bda1233463
parent5822e9e57f38a096e5bb788de992e1e9cd1cc47d
Fix three bugs:

1) evaluate [v]fcmp true/false with undefs to true or false instead
   of undef.
2) fix vector comparisons with undef to return a vector result instead
   of i1
3) fix vector comparisons with evaluatable results to return vector
   true/false instead of i1 true/false (PR2529)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53220 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp
test/Transforms/ConstProp/2008-07-07-VectorCompare.ll [new file with mode: 0644]