Displaying 3 results from an estimated 3 matches for "tp29932485p29949646".
2010 Oct 12
0
[LLVMdev] DCE and external function
On Tue, Oct 12, 2010 at 1:21 PM, leledumbo <leledumbo_cool at yahoo.co.id> wrote:
>
>> only if the compiler can prove that the called function has
>> no side effects (such as modifying some global variables or
>> causing the program to exit).
>
> can it prove if the function resides in a shared library?
Only if the right function attributes are added. See
2010 Oct 13
1
[LLVMdev] DCE and external function
...can
just declare and call it from the generated llvm assembly.
What I'm afraid of is, for example, return value of a call to connect
function may be ignored, and the optimizer will eliminate the call due to
this.
--
View this message in context: http://old.nabble.com/DCE-and-external-function-tp29932485p29949646.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Oct 12
3
[LLVMdev] DCE and external function
> only if the compiler can prove that the called function has
> no side effects (such as modifying some global variables or
> causing the program to exit).
can it prove if the function resides in a shared library?
--
View this message in context: http://old.nabble.com/DCE-and-external-function-tp29932485p29942236.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.