Displaying 3 results from an estimated 3 matches for "mem_base_addr_ptr".
2020 Jul 23
2
How to optimize out the duplicated memory load instructions?
Hi Johannes,
Thanks for your help. I tried with something like below and nothing
changes. Maybe I am doing something wrong?
246001 check_exce_succ59: ; preds =
%check_exce_succ40
**246002 %mem_base60 = load i8*, i8** %mem_base_addr_ptr, align 8,
!alias.scope !3
246003 %offset161 = add i32 %call56, 4
246004 %12 = sext i32 %offset161 to i64
246005 %maddr62 = getelementptr inbounds i8, i8* %mem_base60, i64 %12
246006 %data_ptr63 = bitcast i8* %maddr62 to i64*
**246007 store i64 0, i64* %data_ptr63, align 1, !noalias !3
**2...
2020 Jul 23
2
How to optimize out the duplicated memory load instructions?
...;
> > Thanks for your help. I tried with something like below and nothing
> > changes. Maybe I am doing something wrong?
> >
> > 246001 check_exce_succ59: ; preds =
> > %check_exce_succ40
> > **246002 %mem_base60 = load i8*, i8** %mem_base_addr_ptr, align 8,
> > !alias.scope !3
> > 246003 %offset161 = add i32 %call56, 4
> > 246004 %12 = sext i32 %offset161 to i64
> > 246005 %maddr62 = getelementptr inbounds i8, i8* %mem_base60, i64 %12
> > 246006 %data_ptr63 = bitcast i8* %maddr62 to i64*
> > **2460...
2020 Jul 23
2
How to optimize out the duplicated memory load instructions?
...se66 and make the subsequent code reuse the %mem_base60? I
tried with metadata 'alias.scope' and 'noalias' and it doesn't help. Thanks
for any advice.
392542 check_exce_succ59: ; preds =
%check_exce_succ40
**392543 %mem_base60 = load i8*, i8** %mem_base_addr_ptr, align 8
392544 %offset161 = add i32 %call56, 4
392545 %11 = sext i32 %offset161 to i64
392546 %maddr62 = getelementptr inbounds i8, i8* %mem_base60, i64 %11
392547 %data_ptr63 = bitcast i8* %maddr62 to i64*
392548 store i64 0, i64* %data_ptr63, align 8
**392549 %mem_base66 = load i8*,...