[LLVMdev] [PATCH] increase the max number of physical registers

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Dec 8 15:31:54 PST 2009

On Dec 8, 2009, at 11:33 AM, Evan Cheng wrote:

> This caused a massive slow down to post-ra scheduler (llc -O3 on x86, -O2 on ARM). I'm going to revert it for now until it has been addressed.

Probably caused by this member:

    /// KillIndices - The index of the most recent kill (proceding bottom-up),
    /// or ~0u if the register is not live.
    unsigned KillIndices[TargetRegisterInfo::FirstVirtualRegister];

And this:

  std::fill(KillIndices, array_endof(KillIndices), ~0u);

It should probably be dynamically allocated with TRI->getNumRegs() members instead.


More information about the llvm-dev mailing list