aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature/packed_struct.ll
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-03-25 10:34:54 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-03-25 10:34:54 +0000
commitf8c8a9cbb40972b07432d6b25d1a351556485b1e (patch)
tree11ea4111259fbecf4e56c70ca691ba8f8c266ffe /test/Feature/packed_struct.ll
parent0417d7dca09b0beb7f27045b0ab9e93096905c74 (diff)
downloadexternal_llvm-f8c8a9cbb40972b07432d6b25d1a351556485b1e.zip
external_llvm-f8c8a9cbb40972b07432d6b25d1a351556485b1e.tar.gz
external_llvm-f8c8a9cbb40972b07432d6b25d1a351556485b1e.tar.bz2
Teach the function cloner (and thus the inliner) to simplify PHINodes
aggressively. There are lots of dire warnings about this being expensive that seem to predate switching to the TrackingVH-based value remapper that is automatically updated on RAUW. This makes it easy to not just prune single-entry PHIs, but to fully simplify PHIs, and to recursively simplify the newly inlined code to propagate PHINode simplifications. This introduces a bit of a thorny problem though. We may end up simplifying a branch condition to a constant when we fold PHINodes, and we would like to nuke any dead blocks resulting from this so that time isn't wasted continually analyzing them, but this isn't easy. Deleting basic blocks *after* they are fully cloned and mapped into the new function currently requires manually updating the value map. The last piece of the simplification-during-inlining puzzle will require either switching to WeakVH mappings or some other piece of refactoring. I've left a FIXME in the testcase about this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/packed_struct.ll')
0 files changed, 0 insertions, 0 deletions