Displaying 2 results from an estimated 2 matches for "tmp90".
Did you mean:
tmp0
2011 Aug 30
2
[LLVMdev] Getting rid of phi instructions?
...have a function approx. like this:
void @func() {
entry:
…
bb1:
…
bb2:
…
%tmp100 = phi i32 [ 0, bb1 ], [ 1, bb2 ] …
%tmp101 = getelementptr …, %tmp100
tail call void @anotherfunc(…, %tmp101)
ret void
}
I would like it to rather be something like this:
void @func() {
entry:
…
bb1:
...
%tmp90 = getelementptr …, %tmp89
tail call void @anotherfunc(%tmp90)
ret void
bb2:
…
%tmp101 = getelementptr …, %tmp100
tail call void @anotherfunc(%tmp101)
ret void
}
Best regards,
Teemu
--
Teemu Rinta-aho Tel: +358 9 299 3078
Ericsson Research Mobile: +...
2011 Aug 30
0
[LLVMdev] Getting rid of phi instructions?
...0, bb1 ], [ 1, bb2 ] …
> %tmp101 = getelementptr …, %tmp100
> tail call void @anotherfunc(…, %tmp101)
> ret void
> }
>
> I would like it to rather be something like this:
>
> void @func() {
> entry:
> …
> bb1:
> ...
> %tmp90 = getelementptr …, %tmp89
> tail call void @anotherfunc(%tmp90)
> ret void
> bb2:
> …
> %tmp101 = getelementptr …, %tmp100
> tail call void @anotherfunc(%tmp101)
> ret void
> }
reg2mem won't do quite this transformation... not s...