Displaying 4 results from an estimated 4 matches for "externalfunc".
Did you mean:
extern_func
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...
2010 Oct 13
2
[LLVMdev] DCE and external function
Hi,
On Mon, Oct 11, 2010 at 3:46 PM, Duncan Sands <baldrick at free.fr> wrote:
> 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
>...
2010 Oct 13
0
[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?
>>
>> only if the compiler can prove that the called function has
>> no side effects (such as modifying so...