[LLVMdev] Default behavior of DeadMachineInstructionElim deletes all instructions

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon May 3 09:51:58 PDT 2010


On Apr 29, 2010, at 2:06 PM, Villmow, Micah wrote:

> Ping. Anyone have any idea on how to fix this?

Does your getAllocatableSet() return a BitVector that is at least getNumRegs() bits long? Otherwise this doesn't work:

  BitVector NonAllocatableRegs = TRI->getAllocatableSet(MF);
  NonAllocatableRegs.flip();






More information about the llvm-dev mailing list