A design flaw in the spine triron compiler

The compiler applies the same check to all make_block_ptr calls, without distinguishing “whether a tensor needs to reside entirely in Scratchpad.

To change this, two things need to be done:

  1. Modify the compiler’s MAX_TENSOR_NUMEL check to distinguish between “tile tensors” and “global tensors”

  2. Ensure that the generated code loads only the tile data into Scratchpad, rather than the entire tensor