search for: clearcompleted

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

2015 Aug 28
7
Clearing the BSS section
...one--eabi" @__bss_start = external global i32 @__bss_end = external global i32 define void @clearBSS () nounwind { entry: br label %bssLoopTest bssLoopTest: %p = phi i32* [@__bss_start, %entry], [%p.next, %bssLoop] %completed = icmp eq i32* %p, @__bss_end br i1 %completed, label %clearCompleted, label %bssLoop bssLoop: store i32 0, i32* %p, align 4 %p.next = getelementptr inbounds i32, i32* %p, i32 1 br label %bssLoopTest clearCompleted: ret void } ;------------ This code runs. But when I optimize it with : opt -disable-simplify-libcalls -Os -S source.ll -o optimized.ll I g...