Common Tail Elimination
\ Perry Smith (23 Mar 2006)
. \ Ramana Radhakrishnan (23 Mar 2006)

1 msgInstallation failure: `GLIBC_2.3' not found
3 msgmix of sse and x87 code on x86_64
3 msgCreating and using header files
7 msgInconsistent results casting double to int on x86
1 msgconstraints for saving stack pointer
4 msgShared variables (between ELF executables)
3 msgfunction template specialization problem
2 msgConstructors of library objects doesn't get called
1 msgnewbie question: linking problem
1 msgwhere can I find tools info and example steps t...
2 msgmd files language
1 msgfor getting millisecond resolution in profiling...
1 msgBuilding with gcc 2.95 on a gcc 3.x distro
4 msgHelp in GIMPLE to RTL transformation
1 msgGCC 4.1.0 build failure on solaris 2.8
1 msgCan not build gcc-4.0.2
1 msg--program-transform-name option doesn't do anyt...
4 msgefficiency
2 msgUsing a compiler from a program
Subject:Re: Common Tail Elimination
Group:Gcc-help
From:Ramana Radhakrishnan
Date:23 Mar 2006



This is called code sinking and AFAIK this is implemented in the 4.x
series. You can also look at the code factoring branch that was being
merged into 4.2.


> Does gcc/g++ have what I think is called "common tail elimination"?
> If a function does: step a, step b, step c, return val; in more than
> one place, will the common code be pulled out and branched to in
> order to reduce the size of the code? This may be contrary to most
> optimizations since it introduces a branch which costs time but the
> benefit is smaller code size.
>
> Thanks,
> Perry
>


----
Ramana Radhakrishnan
GNU Tools
Codito Technologies




© 2004-2008 readlist.com