This is the mail archive of the
mailing list for the GCC project.
- From: charfi asma <charfiasma at yahoo dot fr>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 20 Apr 2010 08:06:16 +0000 (GMT)
- Subject: ipa-cp drawback
I have question concernais the constant propagation drawbacks.
red in one of the GCC summit paper that Constant propagation is limited
to create at most one clone of each function body and only in the case:
- the operand is the same constant in all calls to the function
- the operand would not be propagated without cloning because function might be called externally
This makes the interaction with the inliner suboptimal
Could so explain more this idea? did this means that ipa-cp will produce only one version of a calle function?
Could so please give me an example that shows this drawbak?
thank you very much,