Displaying 2 results from an estimated 2 matches for "globlaopt".
Did you mean:
globalopt
2016 Aug 30
2
TryToShrinkGlobalToBoolean in GlobalOpt.cpp issue
...;
> > static int x = 100;
> >
> > int main() {
> > x = 101;
> > printf("%d\n", x);
> > }
> >
> > results in:
> >
> > %0 = load i1
> > %1 = select %0, 101, 100
>
> If x is only touched in one function, I’d expect globlaopt to turn it into
> an alloca instead of leaving it global and shrinking it.
> Did you oversimplify the real case where you see this for the sake of the
> example here?
>
> —
> Mehdi
>
>
> > ...
> > ...
> >
> > 1) What architecture(s) does this benefit?...
2016 Aug 30
4
TryToShrinkGlobalToBoolean in GlobalOpt.cpp issue
Given some code:
static int x = 100;
int main() {
x = 101;
printf("%d\n", x);
}
results in:
%0 = load i1
%1 = select %0, 101, 100
...
...
1) What architecture(s) does this benefit?
2) What's the best way to circumvent this in the backend (currently I am
just not allowing this opt function to run)? I have tried a few
setOperationAction methods to no result. Rather not just