[LLVMdev] Puzzled by results of -O3

Timo Juhani Lindfors timo.lindfors at iki.fi
Wed Nov 11 03:47:56 PST 2009


Stephan <stephan.reiter at gmail.com> writes:
> store [1 x i32] zeroinitializer, [1 x i32]* %tmp4

If I replace this with

%tmp6 = bitcast [1 x i32]* %tmp4 to i32* ; <[1 x i32]*>[#uses=1]
store i32 0, i32* %tmp6

then "opt -gvn" alone is enough figure out "ret i32 0".



More information about the llvm-dev mailing list