Displaying 2 results from an estimated 2 matches for "_z3sumpvi".
2009 Jan 13
2
[LLVMdev] llvm-gcc doesnt honor volatile quantifier of the array type?
...*> [#uses=1]
%2 = volatile load i32* %1, align 4 ; <i32> [#uses=1]
%3 = add i32 %2, %0 ; <i32> [#uses=1]
...
}
We can see the load is "volatile", this is correct and expected.
But when I compile the example as C++ code, then llvm-gcc dump:
define i32 @_Z3sumPVi(i32* nocapture %a) nounwind readonly {
bb1.thread:
%0 = load i32* %a, align 4 ; <i32> [#uses=1]
%1 = getelementptr i32* %a, i32 1 ; <i32*> [#uses=1]
%2 = load i32* %1, align 4 ; <i32> [#uses=1]
%3 = add i32 %2, %0 ; <i32> [#uses=1]
......
2009 Jan 13
0
[LLVMdev] llvm-gcc doesnt honor volatile quantifier of the array type?
...%1, align 4 ; <i32> [#uses=1]
> %3 = add i32 %2, %0 ; <i32> [#uses=1]
> ...
> }
>
> We can see the load is "volatile", this is correct and expected.
>
>
> But when I compile the example as C++ code, then llvm-gcc dump:
>
> define i32 @_Z3sumPVi(i32* nocapture %a) nounwind readonly {
> bb1.thread:
> %0 = load i32* %a, align 4 ; <i32> [#uses=1]
> %1 = getelementptr i32* %a, i32 1 ; <i32*> [#uses=1]
> %2 = load i32* %1, align 4 ; <i32> [#uses=1]
> %3 = add i32 %2, %0 ; <i32&...