PR11705, part 2: globalopt shouldn't put inttoptr/ptrtoint operations into global...
authorEli Friedman <eli.friedman@gmail.com>
Thu, 5 Jan 2012 23:03:32 +0000 (23:03 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 5 Jan 2012 23:03:32 +0000 (23:03 +0000)
commitfb54ad19e7ef1b4f7177a005332ca8aca9bdbcb1
tree4638f78d76cc176e7ff549d2d1b92e5213cf3b47
parent3ed8815541d2118728a91bbd5bee054fbcfba71f
PR11705, part 2: globalopt shouldn't put inttoptr/ptrtoint operations into global initializers if there's an implied extension or truncation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147625 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/ctor-list-opt-constexpr.ll