diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-05-08 06:34:09 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-05-08 06:34:09 +0000 |
commit | 45e0010e14d419ebeca9266b9b705867fd251b83 (patch) | |
tree | c3a66d59799b3626327d15ebc0391fc49f1dfe1f /lib/Transforms/Hello | |
parent | 4a228864f2d3dc56179caaabc602a892975e06b9 (diff) | |
download | external_llvm-45e0010e14d419ebeca9266b9b705867fd251b83.zip external_llvm-45e0010e14d419ebeca9266b9b705867fd251b83.tar.gz external_llvm-45e0010e14d419ebeca9266b9b705867fd251b83.tar.bz2 |
Optimize code placement in loop to eliminate unconditional branches or move unconditional branch to the outside of the loop. e.g.
/// A:
/// ...
/// <fallthrough to B>
///
/// B: --> loop header
/// ...
/// jcc <cond> C, [exit]
///
/// C:
/// ...
/// jmp B
///
/// ==>
///
/// A:
/// ...
/// jmp B
///
/// C: --> new loop header
/// ...
/// <fallthough to B>
///
/// B:
/// ...
/// jcc <cond> C, [exit]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Hello')
0 files changed, 0 insertions, 0 deletions