diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-02-02 15:56:22 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-02-02 15:56:22 +0000 |
| commit | f4ea1d5f793243fdc92514964968c7d8e3eed6e7 (patch) | |
| tree | c7ac1a9947cfcdb20ba3cbde5b6db96a50b8d96e /llvm/lib/CodeGen/RenderMachineFunction.h | |
| parent | 27734fdbbfe20b0f21ebf0cb6357c60c571c4d93 (diff) | |
| download | bcm5719-llvm-f4ea1d5f793243fdc92514964968c7d8e3eed6e7.tar.gz bcm5719-llvm-f4ea1d5f793243fdc92514964968c7d8e3eed6e7.zip | |
SimplifyCFG: Turn switches into sub+icmp+branch if possible.
This makes the job of the later optzn passes easier, allowing the vast amount of
icmp transforms to chew on it.
We transform 840 switches in gcc.c, leading to a 16k byte shrink of the resulting
binary on i386-linux.
The testcase from README.txt now compiles into
decl %edi
cmpl $3, %edi
sbbl %eax, %eax
andl $1, %eax
ret
llvm-svn: 124724
Diffstat (limited to 'llvm/lib/CodeGen/RenderMachineFunction.h')
0 files changed, 0 insertions, 0 deletions

