aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-04-06 01:11:52 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-04-06 01:11:52 +0000
commit6bbab86af959a8819ddadfe8909bcfa5aa53ce9f (patch)
treee13e9adda7545aa316f8d62d9cf0a203ba9fd2ee /include/llvm/Module.h
parentf16936e5923156863906c915de657b134db4fb16 (diff)
Sink the return instruction collection until after we're done deleting
dead code, including dead return instructions in some cases. Otherwise, we end up having a bogus poniter to a return instruction that blows up much further down the road. It turns out that this pattern is both simpler to code, easier to update in the face of enhancements to the inliner cleanup, and likely cheaper given that it won't add dead instructions to the list. Thanks to John Regehr's numerous test cases for teasing this out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
0 files changed, 0 insertions, 0 deletions