search for: copyload

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

2013 Nov 24
1
[LLVMdev] wrong code generation for memcpy function in SROA optimization pass
...ansferInst,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 = load i16* sh,align 1, store i16 %sh.0.copyload,i16* %sh.0.cast,align 1, In a word,I think visitMemTransferInst function in SROA.cpp had maken a incorrect optimization for memcpy in the situation like memcpy's size>sizeof(dest). am i write? I would appreciate any suggestions on this....