[LLVMdev] Register Allocation problem
Chris Lattner
sabre at nondot.org
Mon May 16 21:14:32 PDT 2005
On Mon, 16 May 2005, Misha Brukman wrote:
>> " llc: LiveVariables.cpp:86: void
>> llvm::LiveVariables::HandleVirtRegUse(llvm::LiveVariables::VarInfo&,
>> llvm::MachineBasicBlock*, llvm::MachineInstr*): Assertion
>> `VRInfo.DefInst && "Register use before def!"' failed.
>
> This is a bug in your instruction selector and the assertion is telling
> you exactly what's wrong. Registers in MachineInstrs are also in SSA --
> there must be a single static def of any register before its use.
Another note: if you can't figure out what the problem is, please send the
output of llc with the -print-machineinstrs flag to the list, and we'll
try to help :)
-Chris
--
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/
More information about the llvm-dev
mailing list