fix PR5733, a case where we'd replace an add with a lexically identical
authorChris Lattner <sabre@nondot.org>
Wed, 9 Dec 2009 17:18:49 +0000 (17:18 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 9 Dec 2009 17:18:49 +0000 (17:18 +0000)
commiteddc65aa0da35ee906e27cc7a13f44260c70007c
treedb512adeb64363e3fdda2aa683aa3d45cca25cd0
parent990d2857654cb80e46d207533834be3047494830
fix PR5733, a case where we'd replace an add with a lexically identical
binary operator that wasn't an add.  In this case, a xor.  Whoops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90971 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/PHITransAddr.cpp
test/Transforms/GVN/crash-2.ll [new file with mode: 0644]