Displaying 2 results from an estimated 2 matches for "times_zero".
2011 Jul 15
2
[LLVMdev] Missing optimization in constant propagation?
Hi all,
I stumbled across a peculiarity regarding constant propagation that I don't understand. I'm not sure, if I oversee anything or if it's a missing feature.
I have created the following simple test function in C:
int times_zero(int a)
{
return (a * 0);
}
Compiling this with GCC using dragonegg generates the following code:
%int = type i32
define i32 @times_zero(i32 %a) nounwind {
entry:
%a_addr = alloca i32, align 4
%memtmp = alloca i32
%"alloca point" = bitcast i32 0 to i32
store i32 %a, i32* %a_ad...
2011 Jul 15
0
[LLVMdev] Missing optimization in constant propagation?
....apel at simpack.de> wrote:
> Hi all,
>
> I stumbled across a peculiarity regarding constant propagation that I don't understand. I'm not sure, if I oversee anything or if it's a missing feature.
>
> I have created the following simple test function in C:
>
> int times_zero(int a)
> {
> return (a * 0);
> }
>
> Compiling this with GCC using dragonegg generates the following code:
>
> %int = type i32
>
> define i32 @times_zero(i32 %a) nounwind {
> entry:
> %a_addr = alloca i32, align 4
> %memtmp = alloca i32
> %"alloca poi...