OSDN Git Service

intel/ir: Don't allow allocating zero registers
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Oct 2018 18:52:45 +0000 (13:52 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Dec 2018 03:26:23 +0000 (21:26 -0600)
commite1ef6c3c2948883d6f1ed9b33c1e04f52fe31ec2
tree6003336aac01da97a40fb9d23cf92bf0752cae75
parent86c45fe960603f97604c885e01f5a69030309809
intel/ir: Don't allow allocating zero registers

This simple check helps catch bugs early that can end up propagating
into later stages of the compile and triggering strange asserts.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/intel/compiler/brw_ir_allocator.h