search for: visitmemtransferinst

Displaying 1 result from an estimated 1 matches for "visitmemtransferinst".

2013 Nov 24
1
[LLVMdev] wrong code generation for memcpy function in SROA optimization pass
...32 0,i32 0),i32 %conv), ret i32 0, } IR after SROA: define i32 @main() #0 { entry: %conv = sext i8 undef to i32, %call = call i32 (i8*,...)* @printf(i8* getelementptr inbounds([9*i8]*@.str,i32 0,i32 0),i32 %conv), ret i32 0, } Then I tried to debbuging with SROA.cpp,I found in funcction visitMemTransferInst,it accorded the IR instruction "call void @llvm.memcpy.p0i8.p0i8.i32(i8* %ch,i8* %0,,i32 2,i32 1,i1 false)",would produce such codes(finally,memcpy disappeared and the codes would be delated,IR after SROA become incorrect ,am i right?) %sh.0.cast = bitcast i8* ch to i16*, %sh.0.copyload =...