search for: anotherfunc

Displaying 2 results from an estimated 2 matches for "anotherfunc".

2011 Aug 30
2
[LLVMdev] Getting rid of phi instructions?
Hi all, is there a pass to get rid of phi-instructions in a function? There's no loop involved. I 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...
2011 Aug 30
0
[LLVMdev] Getting rid of phi instructions?
...no loop involved. reg2mem. > I 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...