Add a constant folding of casts from zero to zero. Fixes PR9011!
commit20d3256a76b7ce483c950283cf2121f22d822d33
authorNick Lewycky <nicholas@mxc.ca>
Fri, 21 Jan 2011 01:12:09 +0000 (21 01:12 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 21 Jan 2011 01:12:09 +0000 (21 01:12 +0000)
treeadcd0a36f1b75ca7cabd111eb8bc72d38824ecfe
parent7c7b45a69fdce3f0438152363ff4647b4abaacc2
Add a constant folding of casts from zero to zero. Fixes PR9011!

While here, I'd like to complain about how vector is not an aggregate type
according to llvm::Type::isAggregateType(), but they're listed under aggregate
types in the LangRef and zero vectors are stored as ConstantAggregateZero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123956 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp
test/Transforms/ConstProp/constant-expr.ll