[mlir][bytecode] Fix lazy loading of non-isolated regions
authorRiver Riddle <riddleriver@gmail.com>
Mon, 26 Jun 2023 18:36:06 +0000 (11:36 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 26 Jun 2023 23:33:20 +0000 (16:33 -0700)
commit6ee1aba8acc1255a6eb9e34788a2376c6357458b
tree77a9a49931d896d0fd850d83de59b4a30b298e7c
parenta18266473be1439d324059afa0e8b124f0466428
[mlir][bytecode] Fix lazy loading of non-isolated regions

The bytecode reader currently assumes all regions can be lazy
loaded, which breaks reading any non-isolated region. This patch
fixes that by properly handling nested non-lazy regions, and only
considers isolated regions as lazy.

Differential Revision: https://reviews.llvm.org/D153795
mlir/lib/Bytecode/Reader/BytecodeReader.cpp
mlir/test/Bytecode/bytecode-lazy-loading.mlir