Displaying 8 results from an estimated 8 matches for "_z3fooff".
Did you mean:
_z3foo1t
2007 Mar 25
2
[LLVMdev] Live intervals and aliasing registers problem
...2 %a, i32 %b ;
<i32> [#uses=0]
ret void
}
I get this error:
entry (0x8503b90, LLVM BB @0x8501b00, ID#0):
%reg1024 = ORI %R0, 0
%reg1025 = ORI %R1, 0
RETL
Machine Function
********** REWRITING TWO-ADDR INSTRS **********
********** Function: _Z3fooff
********** COMPUTING LIVE INTERVALS **********
********** Function: _Z3fooii
entry:
livein register: R0 killed +[0,2:0)
livein register: V4R0 killed +[0,2:0)
livein register: R1 killed +[0,6:0)
livein register: V4R0 killed +[0,2...
2010 Mar 03
5
[LLVMdev] folding x * 0 = 0
...he hint and it works!
Now I have a new Problem:
I have this function:
float foo(float a, float b)
{
float x = a * b * 0.0f;
return cos(0.5) * sin(0.5) * x;
};
after compiling it with clang (cpp mode) and renaming _ZSt3sinf to sin
and _ZSt3cosf to cos I get the following:
define float @_Z3fooff(float %a, float %b) nounwind {
entry:
%mul = fmul float %a, %b ; <float> [#uses=1]
%mul2 = fmul float %mul, 0.000000e+000 ; <float> [#uses=1]
%mul6 = fmul float 0x3FDAED54A0000000, %mul2 ; <float> [#uses=1]
ret float %mul6
}
the sin...
2007 Mar 27
0
[LLVMdev] Live intervals and aliasing registers problem
...gt; ret void
> }
>
> I get this error:
>
> entry (0x8503b90, LLVM BB @0x8501b00, ID#0):
> %reg1024 = ORI %R0, 0
> %reg1025 = ORI %R1, 0
> RETL
> Machine Function
> ********** REWRITING TWO-ADDR INSTRS **********
> ********** Function: _Z3fooff
>
> ********** COMPUTING LIVE INTERVALS **********
> ********** Function: _Z3fooii
> entry:
> livein register: R0 killed +[0,2:0)
> livein register: V4R0 killed +[0,2:0) <=== this
> is bad
> livein register: R1 killed +[...
2010 Mar 01
2
[LLVMdev] constant folding for standard math functions
Hi!
I'd like to replace all calls to standard math functions (e.g. sin(0.5)) by
their result.
What strategy do you recommend?
Should I write a pass that does only this or should I copy and
modify the SCCP pass?
A problem with an extra pass could be that that I need to alternate
my pass and SCCP several times since the results of the math functions
could be folded again.
-Jochen
2010 Mar 01
0
[LLVMdev] constant folding for standard math functions
On Mar 1, 2010, at 9:44 AM, Jochen Wilhelmy wrote:
> Hi!
>
> I'd like to replace all calls to standard math functions (e.g. sin(0.5)) by
> their result.
> What strategy do you recommend?
> Should I write a pass that does only this or should I copy and
> modify the SCCP pass?
>
> A problem with an extra pass could be that that I need to alternate
> my pass and
2010 Mar 05
0
[LLVMdev] folding x * 0 = 0
...e this function:
>
> float foo(float a, float b)
> {
> float x = a * b * 0.0f;
> return cos(0.5) * sin(0.5) * x;
> };
>
> after compiling it with clang (cpp mode) and renaming _ZSt3sinf to sin
> and _ZSt3cosf to cos I get the following:
>
> define float @_Z3fooff(float %a, float %b) nounwind {
> entry:
> %mul = fmul float %a, %b ;<float> [#uses=1]
> %mul2 = fmul float %mul, 0.000000e+000 ;<float> [#uses=1]
> %mul6 = fmul float 0x3FDAED54A0000000, %mul2 ;<float> [#uses=1]
>...
2007 Mar 27
0
[LLVMdev] Live intervals and aliasing registers problem
...t;Rtest0", [I0, I1]>, DwarfRegNum<0>;
Then attempt to build the attached llvm file using 'llvm-as <
vecinterval.ll | llc -debug -march=sparc vecinterval -f -o
vecinterval.s'
I get the following error:
********** COMPUTING LIVE INTERVALS **********
********** Function: _Z3fooff
entry:
livein register: I0 killed +[0,2:0)
livein register: Rtest0 killed +[0,2:0)
livein register: I1 killed +[0,6:0)
livein register: Rtest0 killed +[0,2:1)
lib/CodeGen/LiveInterval.cpp:189: failed assertion `B->end <= Star...
2007 Apr 03
2
[LLVMdev] Live intervals and aliasing registers problem
...;> I get this error:
>>
>> entry (0x8503b90, LLVM BB @0x8501b00, ID#0):
>> %reg1024 = ORI %R0, 0
>> %reg1025 = ORI %R1, 0
>> RETL
>> Machine Function
>> ********** REWRITING TWO-ADDR INSTRS **********
>> ********** Function: _Z3fooff
>>
>> ********** COMPUTING LIVE INTERVALS **********
>> ********** Function: _Z3fooii
>> entry:
>> livein register: R0 killed +[0,2:0)
>> livein register: V4R0 killed +[0,2:0) <=== this
>> is bad
>>...