Update fusion cost model + some additional infrastructure and debug information for...
authorUday Bondhugula <bondhugula@google.com>
Wed, 23 Jan 2019 17:16:24 +0000 (09:16 -0800)
committerjpienaar <jpienaar@google.com>
Fri, 29 Mar 2019 22:32:06 +0000 (15:32 -0700)
commit864d9e02a17f02fb396e5ea047623ed4207153f1
treeacf1730c7c38f258d7d562e32089facce6e0ce21
parente4020c2d1a4b739856aa2178fcc79e47fc6bb69f
Update fusion cost model + some additional infrastructure and debug information for -loop-fusion

- update fusion cost model to fuse while tolerating a certain amount of redundant
  computation; add cl option -fusion-compute-tolerance
  evaluate memory footprint and intermediate memory reduction
- emit debug info from -loop-fusion showing what was fused and why
- introduce function to compute memory footprint for a loop nest
- getMemRefRegion readability update - NFC

PiperOrigin-RevId: 230541857
mlir/include/mlir/Analysis/Utils.h
mlir/lib/Analysis/AffineStructures.cpp
mlir/lib/Analysis/Utils.cpp
mlir/lib/Transforms/DmaGeneration.cpp
mlir/lib/Transforms/LoopFusion.cpp
mlir/test/Transforms/loop-fusion.mlir