This test was originally added in, but it's marked xfail in NewGVN. I think this seems to fix it.
commit 7470fb01d00e559eb9bed5fe00ba7feeb427d5f9 Author: Jakub Staszak <firstname.lastname@example.org> Date: Fri Sep 2 14:57:37 2011 +0000 Compare type size instead of type _store_ size to make sure that BitCastInst will be valid. This fixes PR10820. llvm-svn: 139005