Handle a special case xor undef, undef -> 0. Technically this should be transformed...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 25 Mar 2008 20:08:07 +0000 (20:08 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 25 Mar 2008 20:08:07 +0000 (20:08 +0000)
commit26471c48b3d49bdbcfcc05cb9a575b5fa123fbbf
treecf75442b4cf9f93ed3b27eef5bd8a601353c94b9
parentd34af7875b682d519038295b04ab4e15f237ccdf
Handle a special case xor undef, undef -> 0. Technically this should be transformed to undef. But this is such a common idiom (misuse) we are going to handle it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48792 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/VMCore/ConstantFold.cpp
test/CodeGen/X86/xor-undef.ll [new file with mode: 0644]