Compare type size instead of type _store_ size to make sure that BitCastInst
authorJakub Staszak <jstaszak@apple.com>
Fri, 2 Sep 2011 14:57:37 +0000 (14:57 +0000)
committerJakub Staszak <jstaszak@apple.com>
Fri, 2 Sep 2011 14:57:37 +0000 (14:57 +0000)
commit8cec759339f69ff6479e50c13545db3a5337c71a
tree0406773f926f3e2955b6fa6f42a002e909c0f435
parent989621f1f8356c977d7578252422de1b65d24587
Compare type size instead of type _store_ size to make sure that BitCastInst
will be valid. This fixes PR10820.

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