Add a constant folding of casts from zero to zero. Fixes PR9011!
authorNick Lewycky <nicholas@mxc.ca>
Fri, 21 Jan 2011 01:12:09 +0000 (01:12 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 21 Jan 2011 01:12:09 +0000 (01:12 +0000)
commit4c93a0f09225b428fb0f28f1c540f5ff5dd5bb3c
treeadcd0a36f1b75ca7cabd111eb8bc72d38824ecfe
parentd7e3cc840b81b0438e47f05d9664137a198876df
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