Displaying 6 results from an estimated 6 matches for "_z5check3foos".
2012 Sep 20
2
[LLVMdev] Scheduling question (memory dependency)
...void check(struct foo f, short i) __attribute__((noinline)) {
if (f.i != i) {
short fi = f.i;
printf("problem with %u != %u\n", fi, i);
exit(0);
}
}
---------------------------------------------------------------
The initial portion of the Clang output is:
define void @_Z5check3foos(%struct.foo* nocapture byval %f, i16 signext %i) noinline {
entry:
%0 = bitcast %struct.foo* %f to i16*
%1 = load i16* %0, align 2
...
---------------------------------------------------------------
The code works OK at -O0. At -O1, the first part of the generated code
is:
----------------...
2012 Sep 21
0
[LLVMdev] Scheduling question (memory dependency)
...line)) {
> if (f.i != i) {
> short fi = f.i;
> printf("problem with %u != %u\n", fi, i);
> exit(0);
> }
> }
> ---------------------------------------------------------------
>
> The initial portion of the Clang output is:
>
> define void @_Z5check3foos(%struct.foo* nocapture byval %f, i16 signext %i) noinline {
> entry:
> %0 = bitcast %struct.foo* %f to i16*
> %1 = load i16* %0, align 2
> ...
> ---------------------------------------------------------------
>
> The code works OK at -O0. At -O1, the first part of the g...
2012 Sep 21
2
[LLVMdev] Scheduling question (memory dependency)
...ort fi = f.i;
> > printf("problem with %u != %u\n", fi, i);
> > exit(0);
> > }
> > }
> > ---------------------------------------------------------------
> >
> > The initial portion of the Clang output is:
> >
> > define void @_Z5check3foos(%struct.foo* nocapture byval %f, i16
> > signext %i) noinline {
> > entry:
> > %0 = bitcast %struct.foo* %f to i16*
> > %1 = load i16* %0, align 2
> > ...
> > ---------------------------------------------------------------
> >
> > The code works...
2012 Sep 21
2
[LLVMdev] Scheduling question (memory dependency)
...> > > > exit(0);
> > > > }
> > > > }
> > > > ---------------------------------------------------------------
> > > >
> > > > The initial portion of the Clang output is:
> > > >
> > > > define void @_Z5check3foos(%struct.foo* nocapture byval %f, i16
> > > > signext %i) noinline {
> > > > entry:
> > > > %0 = bitcast %struct.foo* %f to i16*
> > > > %1 = load i16* %0, align 2
> > > > ...
> > > > --------------------------------------...
2012 Sep 21
0
[LLVMdev] Scheduling question (memory dependency)
...;problem with %u != %u\n", fi, i);
> > > exit(0);
> > > }
> > > }
> > > ---------------------------------------------------------------
> > >
> > > The initial portion of the Clang output is:
> > >
> > > define void @_Z5check3foos(%struct.foo* nocapture byval %f, i16
> > > signext %i) noinline {
> > > entry:
> > > %0 = bitcast %struct.foo* %f to i16*
> > > %1 = load i16* %0, align 2
> > > ...
> > > ---------------------------------------------------------------
>...
2012 Sep 21
0
[LLVMdev] Scheduling question (memory dependency)
...t; > > > > }
> > > > > }
> > > > > ---------------------------------------------------------------
> > > > >
> > > > > The initial portion of the Clang output is:
> > > > >
> > > > > define void @_Z5check3foos(%struct.foo* nocapture byval %f, i16
> > > > > signext %i) noinline {
> > > > > entry:
> > > > > %0 = bitcast %struct.foo* %f to i16*
> > > > > %1 = load i16* %0, align 2
> > > > > ...
> > > > > --------...