Skip to content

Commit

Permalink
[PM/Inliner] Add a test case that encapsulates the core issue addressed
Browse files Browse the repository at this point in the history
in r297374.

I've extracted a small version of this from the C++ metaprogram Richard
came up with to exercise these kinds of issues and written comments to
describe both how to reproduce a fresh version of the test case and what
likely failure modes are.

The test case is still a bit brittle as it depends on the particular
inline cost modeling and SCC visitation order, but it definitely would
have caught the bug right away when developing things so it seems
a really valuable test case to have.

llvm-svn: 297935
  • Loading branch information
chandlerc committed Mar 16, 2017
1 parent 47bed8c commit 6ef42cc
Showing 1 changed file with 460 additions and 0 deletions.

0 comments on commit 6ef42cc

Please sign in to comment.