aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-10-21 08:01:56 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-10-21 08:01:56 +0000
commit4162eced737c83a193247f48dd1c608e82fa2a35 (patch)
treefbdca7507c1f854232d808c178a5a459e74b748b /lib/CodeGen/MachineBlockPlacement.cpp
parentb9ad624fcd63b3137d13b0dd5b13fc4eddb42067 (diff)
Add a very basic test for MachineBlockPlacement. This is essentially the
canonical example I used when developing it, and is one of the primary motivating real-world use cases for __builtin_expect (when burried under a macro). I'm working on more test cases here, but I'm trying to make sure both that the pass is doing the right thing with the test cases and that they aren't too brittle to changes elsewhere in the code generation pipeline. Feedback and/or suggestions on how to test this are very welcome. Especially feedback on whether testing the block comments is a good strategy; I couldn't find any good examples to steal from but all the other ideas I had were a lot uglier or more fragile. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions