Teach vm core to more aggressively fold 'trunc' constantexprs,
authorChris Lattner <sabre@nondot.org>
Sat, 17 Oct 2009 21:53:27 +0000 (21:53 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 17 Oct 2009 21:53:27 +0000 (21:53 +0000)
commit59c4eba4169e40b36719c521c25d29115ff6b206
tree2a99a184e8c797b457bd10dce9e07046bd6f5b48
parent5e5c4d3d5aaec83ea5c413abbfd3fc16fe2504a1
Teach vm core to more aggressively fold 'trunc' constantexprs,
allowing it to simplify the crazy constantexprs in the testcases
down to something sensible.  This allows -std-compile-opts to
completely "devirtualize" the pointers to member functions in
the testcase from PR5176.

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