Reapply r155682, making constant folding more consistent, with a fix to work
authorDan Gohman <gohman@apple.com>
Fri, 27 Apr 2012 17:50:22 +0000 (17:50 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 27 Apr 2012 17:50:22 +0000 (17:50 +0000)
commit03e091f0b5f43beee12170efc00bbab86ffeb0dc
tree97aeaf6db27484a1e58a35584582d14a6ac89f71
parent04a09a461beb4ec629fe53e601b7665547ac35c3
Reapply r155682, making constant folding more consistent, with a fix to work
properly with how the code handles all-undef PHI nodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155721 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
lib/VMCore/ConstantFold.cpp
test/Other/constant-fold-gep.ll
test/Transforms/InstCombine/phi.ll
test/Transforms/SCCP/vector-bitcast.ll [new file with mode: 0644]