search for: 246010

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

Did you mean: 24601
2020 Jul 23
2
How to optimize out the duplicated memory load instructions?
...r62 = 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 **246008 %mem_base66 = load i8*, i8** %mem_base_addr_ptr, align 8, !alias.scope !3 246009 %offset167 = add i32 %call56, 12 246010 %13 = sext i32 %offset167 to i64 .... 382681 !3 = !{!3} 382682 !4 = !{!4} BR, Terry On Thu, Jul 23, 2020 at 11:43 PM Johannes Doerfert < johannesdoerfert at gmail.com> wrote: > Hi Terry, > > > various LLVM passes that run with O3 would do this for you, assuming > they coul...
2020 Jul 23
2
How to optimize out the duplicated memory load instructions?
...t; > 246006 %data_ptr63 = bitcast i8* %maddr62 to i64* > > **246007 store i64 0, i64* %data_ptr63, align 1, !noalias !3 > > **246008 %mem_base66 = load i8*, i8** %mem_base_addr_ptr, align 8, > > !alias.scope !3 > > 246009 %offset167 = add i32 %call56, 12 > > 246010 %13 = sext i32 %offset167 to i64 > > .... > > 382681 !3 = !{!3} > > 382682 !4 = !{!4} > > > > BR, > > Terry > > > > On Thu, Jul 23, 2020 at 11:43 PM Johannes Doerfert < > > johannesdoerfert at gmail.com> wrote: > > > >> Hi...
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