[LLVMdev] VirtRegMap Error

David Greene dag at cray.com
Thu May 8 14:32:35 PDT 2008


On Thursday 08 May 2008 16:25, Evan Cheng wrote:

> > Since we're hooking up llvm to custom code, I want to check
> > assumptions.
> > Is there anything in llvm-gcc or the other llvm tools that could
> > generate a
> > stack slot reference like this before register allocation?
> > Basically, I'm
>
> Codegen can definitely create stack slots during isel lowering. I
> don't think you can assume all non-fixed slots are created during
> register allocation.

Ok, so isn't there a bug in  VirtRegMap::RemoveMachineInstrFromMaps since
it assumes every stack index is >= LowSpillSlot, which doesn't get set until
regalloc spill time?

                                               -Dave



More information about the llvm-dev mailing list