[LLVMdev] What does this error mean: psuedo instructions should be removed before code emission?

Yuri yuri at rawbw.com
Fri Aug 27 11:24:55 PDT 2010


On 08/27/2010 11:05, Dale Johannesen wrote:
>>>> Function only has on BB. Is this wrong that it has both 
>>>> TCRETURNri64 and RET in one BB?
>>>
>>> Yes, that is wrong.  The reason emitEpilogue isn't lowering the 
>>> TCRETURN is that it doesn't see it, it only sees the RET.   The real 
>>> problem will be where that RET is generated.   Normally that's 
>>> LowerCall (where it is spelled TC_RETURN), but reading through it I 
>>> can't see any way to generate both a TC_RETURN and a RET.
>>>
>> Bug somewhere for sure, but without a testcase or way to reproduce it 
>> then it'd be hard to find.
>
> Yes, Yuri's going to have to debug it, or provide a way for others to 
> reproduce it.
>
> It could be his host compiler is miscompiling llvm, too.
>

I am debugging it.
I use gcc-4.5.0 that I built myself to compile llvm.

Yuri



More information about the llvm-dev mailing list