Add a very basic test for MachineBlockPlacement. This is essentially the
authorChandler Carruth <chandlerc@gmail.com>
Fri, 21 Oct 2011 08:01:56 +0000 (08:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 21 Oct 2011 08:01:56 +0000 (08:01 +0000)
commit4162eced737c83a193247f48dd1c608e82fa2a35
treefbdca7507c1f854232d808c178a5a459e74b748b
parentb9ad624fcd63b3137d13b0dd5b13fc4eddb42067
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
test/CodeGen/X86/block-placement.ll [new file with mode: 0644]