radeon/llvm: Use the VLIW Scheduler for R600->NI
It's not optimal, but it's better than the register pressure scheduler that was previously being used. The VLIW scheduler currently ignores all the complicated instruction groups restrictions and just tries to fill the instruction groups with as many instructions as possible. Though, it does know enough not to put two trans only instructions in the same group. We are able to ignore the instruction group restrictions in the LLVM backend, because the finalizer in r600_asm.c will fix any illegal instruction groups the backend generates. Enabling the VLIW scheduler improved the run time for a sha1 compute shader by about 50%. I'm not sure what the impact will be for graphics shaders. I tested Lightsmark with the VLIW scheduler enabled and the framerate was about the same, but it might help apps that use really big shaders.
- src/gallium/drivers/radeon/AMDGPUInstructions.td 1 addition, 0 deletionssrc/gallium/drivers/radeon/AMDGPUInstructions.td
- src/gallium/drivers/radeon/AMDGPUSubtarget.h 36 additions, 0 deletionssrc/gallium/drivers/radeon/AMDGPUSubtarget.h
- src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp 1 addition, 0 deletionssrc/gallium/drivers/radeon/AMDGPUTargetMachine.cpp
- src/gallium/drivers/radeon/AMDGPUTargetMachine.h 7 additions, 3 deletionssrc/gallium/drivers/radeon/AMDGPUTargetMachine.h
- src/gallium/drivers/radeon/AMDILBase.td 4 additions, 0 deletionssrc/gallium/drivers/radeon/AMDILBase.td
- src/gallium/drivers/radeon/AMDILFormats.td 1 addition, 0 deletionssrc/gallium/drivers/radeon/AMDILFormats.td
- src/gallium/drivers/radeon/Makefile 3 additions, 0 deletionssrc/gallium/drivers/radeon/Makefile
- src/gallium/drivers/radeon/Makefile.sources 2 additions, 1 deletionsrc/gallium/drivers/radeon/Makefile.sources
- src/gallium/drivers/radeon/R600ISelLowering.cpp 1 addition, 1 deletionsrc/gallium/drivers/radeon/R600ISelLowering.cpp
- src/gallium/drivers/radeon/R600InstrInfo.cpp 11 additions, 0 deletionssrc/gallium/drivers/radeon/R600InstrInfo.cpp
- src/gallium/drivers/radeon/R600InstrInfo.h 5 additions, 0 deletionssrc/gallium/drivers/radeon/R600InstrInfo.h
- src/gallium/drivers/radeon/R600Schedule.td 3 additions, 3 deletionssrc/gallium/drivers/radeon/R600Schedule.td