diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-09-14 09:28:14 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-09-14 09:28:14 +0000 |
commit | 3748de6e2d7620794ff93b896d85aff6cc0ea9d2 (patch) | |
tree | 5955ba7b6b32175c1c2e27b4df1ed625db00901e /test | |
parent | dcc425c6301c088b4c0598696de50c01fbca5733 (diff) | |
download | external_llvm-3748de6e2d7620794ff93b896d85aff6cc0ea9d2.zip external_llvm-3748de6e2d7620794ff93b896d85aff6cc0ea9d2.tar.gz external_llvm-3748de6e2d7620794ff93b896d85aff6cc0ea9d2.tar.bz2 |
Remove the long, long defunct IR block placement pass.
This pass was based on the previous (essentially unused) profiling
infrastructure and the assumption that by ordering the basic blocks at
the IR level in a particular way, the correct layout would happen in the
end. This sometimes worked, and mostly didn't. It also was a really
naive implementation of the classical paper that dates from when branch
predictors were primarily directional and when loop structure wasn't
commonly available. It also didn't factor into the equation
non-fallthrough branches and other machine level details.
Anyways, for all of these reasons and more, I wrote
MachineBlockPlacement, which completely supercedes this pass. It both
uses modern profile information infrastructure, and actually works. =]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/BlockPlacement/basictest.ll | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/Transforms/BlockPlacement/basictest.ll b/test/Transforms/BlockPlacement/basictest.ll deleted file mode 100644 index 47b5079..0000000 --- a/test/Transforms/BlockPlacement/basictest.ll +++ /dev/null @@ -1,15 +0,0 @@ -; RUN: opt < %s -block-placement -disable-output -print-function 2> /dev/null - -define i32 @test() { - br i1 true, label %X, label %Y - -A: ; preds = %Y, %X - ret i32 0 - -X: ; preds = %0 - br label %A - -Y: ; preds = %0 - br label %A -} - |