Cache object refs in loop partitioner instead of object pointers (#6004)
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Wed, 8 Jul 2020 00:34:10 +0000 (19:34 -0500)
committerGitHub <noreply@github.com>
Wed, 8 Jul 2020 00:34:10 +0000 (17:34 -0700)
commit2875e4cddc4cfff53a19a7e69aa331119c8db7ef
tree9e48157cdf74351337f5027ad58cf2ef103ebfca
parent1cd56da000363877181f3bf7d0b312be5dc17853
Cache object refs in loop partitioner instead of object pointers (#6004)

* Cache object refs in loop partitioner instead of object pointers

Loop partitioner modifies the IR, which can cause TIR objects to
become dead and be destroyed. To avoid working on junk data cache
object references instead of object pointers.

* Fix format/lint errors
src/tir/transforms/loop_partition.cc