Promote local buffers created post fusion to higher memory space
authorUday Bondhugula <bondhugula@google.com>
Sat, 2 Feb 2019 01:06:22 +0000 (17:06 -0800)
committerjpienaar <jpienaar@google.com>
Fri, 29 Mar 2019 23:07:23 +0000 (16:07 -0700)
commit8be262743677cc9f602efba9d28507c70f9bee42
treecb91c810477582c15166cda3bbefde9ef95cc51a
parentdb04019f3a953724b86173a73a5a95263d7d6ff1
Promote local buffers created post fusion to higher memory space

- fusion already includes the necessary analysis to create small/local buffers
  post fusion; allocate these buffers in a higher memory space if the necessary
  pass parameters are provided (threshold size, memory space id)

- although there will be a separate utility at some point to directly detect
  and promote small local buffers to higher memory spaces, doing it while fusion
  when possible is much less expensive, comes free with fusion analysis, and covers
  a key common case.

PiperOrigin-RevId: 232063894
mlir/lib/Transforms/LoopFusion.cpp