Handle a special case xor undef, undef -> 0. Technically this should be transformed...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 25 Mar 2008 20:07:13 +0000 (20:07 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 25 Mar 2008 20:07:13 +0000 (20:07 +0000)
commitd34af7875b682d519038295b04ab4e15f237ccdf
treebae780720ba296a7baea44957888c442f8cb9628
parent1cf962b8749900a0b5b623366b72c34e08cd6a15
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@48791 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/xor-undef.ll [new file with mode: 0644]