Factor out alignof expression folding into a separate function and
authorDan Gohman <gohman@apple.com>
Tue, 2 Feb 2010 01:41:39 +0000 (01:41 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 2 Feb 2010 01:41:39 +0000 (01:41 +0000)
commit6acb86dcfa1ff4e38d2f189ab09e3fbe22f248a7
tree238680b525fa31787298b84af2f9fe780ac11c98
parent8db08df5d3668e92cf4ba6f35743464c42fa986f
Factor out alignof expression folding into a separate function and
generalize it to handle more cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95045 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp
test/Other/constant-fold-gep.ll