diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-18 20:47:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-18 20:47:54 +0000 |
commit | 47ce26158f50079ffc7c2d8df221b26c75ef111e (patch) | |
tree | 71faf8d0c790385014afe13fc7c6bfb62987d3e6 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 95adf8f1da3aebd0a9eaefe607c05177951a389d (diff) | |
download | llvm-47ce26158f50079ffc7c2d8df221b26c75ef111e.zip llvm-47ce26158f50079ffc7c2d8df221b26c75ef111e.tar.gz llvm-47ce26158f50079ffc7c2d8df221b26c75ef111e.tar.bz2 |
Minor code layout tweak: if we have something like this:
if (cond) goto BB2
BB1:
...
return;
BB2:
...
Move BB1 to the end of the function so that the code falls through in the
non-return case. This has the effect of moving assert (and other no-return
call) bodies and return blocks out of loops.
llvm-svn: 31855
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions