[LLVMdev] BranchInst problem

Vladimir Prus ghost at cs.msu.su
Wed Jun 9 02:28:01 PDT 2004


Chris Lattner wrote:
> On Wed, 9 Jun 2004, Vladimir Prus wrote:
> > > Hrm, that's obviously really bad. Can you send me (offline) the output
> > > of llc with the -debug option set and with this code before the assert:
> > >
> > >   std::cerr << "MI: " << i << " " << reg << "  "; mii->dump();
> > >
> > > Also note that it looks like your tree is a bit out of date.  You might
> > > try updating and see if it helps the problem.
> >
> > I've updated and rebuild. The bug is still there and the output you've
> > asked for is attached.
>
> Okay, it looks like a bug in your code generator (though the linscan
> allocator should give a better assertion).  Specifically, you never define
> the %reg1028 register.

Ah... you are right. There's shift instruction which I don't yet implement, so 
the register is used, but not set anywhere.

Sorry,
Volodya




More information about the llvm-dev mailing list