Displaying 3 results from an estimated 3 matches for "tp29932485p29942236".
2010 Oct 11
3
[LLVMdev] DCE and external function
If I have:
%x = call @externalFunc
... ; other codes where %x is not used
ret ; assume void function
and use dce optimization, will the call gets eliminated?
--
View this message in context: http://old.nabble.com/DCE-and-external-function-tp29932485p29932485.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Oct 11
0
[LLVMdev] DCE and external function
Hi leledumbo,
> If I have:
>
> %x = call @externalFunc
> ... ; other codes where %x is not used
> ret ; assume void function
>
> and use dce optimization, will the call gets eliminated?
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).
Ciao,
Duncan.
2010 Oct 12
3
[LLVMdev] DCE and external function
...nly 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.