search for: mem_base60

Displaying 3 results from an estimated 3 matches for "mem_base60".

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* %...
2020 Jul 23
2
How to optimize out the duplicated memory load instructions?
Hi there, The raw input IR is composed by my tool and the below one is produced by llvm opt tool with O3 optimization level. I am pretty sure that the two load instructions( %mem_base60 and %mem_base66) are referring to the same memory location. How can I instruct llvm optimization pass to optimize out the %mem_base66 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 adv...
2020 Jul 23
2
How to optimize out the duplicated memory load instructions?
...t; > 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 i...