Teach constant folding that an inttoptr of a
authorDuncan Sands <baldrick@free.fr>
Wed, 13 Aug 2008 20:20:35 +0000 (20:20 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 13 Aug 2008 20:20:35 +0000 (20:20 +0000)
commit81b06be055e74a3c23a1c8f17ead97f9f76335ee
treee196776a9c44683654f382a48dc44d5a61854e1d
parentb0cf29c5cfff797284b3660dc233e135feb65d9a
Teach constant folding that an inttoptr of a
ptrtoint can be turned into a bitcast if the
integer is at least as wide as a pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54752 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/FrontendAda/constant_fold.ads [new file with mode: 0644]