Imported from GitHub PR https://github.com/tensorflow/tensorflow/pull/42508 An lmhlo.constant op on an memref that is locally allocated and with no users other than dealloc's can be deleted. Add a canonicalization pattern for this. Copybara import of the project: -- 8758c409a15f567e7cb8e1077faa020f5705c85a by Uday Bondhugula <uday@polymagelabs.com>: [MLIR] Erase dead lmhlo.constant ops An lmhlo.constant op on an memref that is locally allocated and with no other users (other than dealloc's) can be deleted. Add a canonicalization patter for this. COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/tensorflow/pull/42508 from polymage-labs:lhlo_constant_erase 8758c409a15f567e7cb8e1077faa020f5705c85a PiperOrigin-RevId: 328042416 |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| chlo_canonicalize.td | ||
| chlo_ops.cc | ||
| dialect_registration.cc | ||
| hlo_ops.cc | ||
| hlo_patterns.td | ||
| infer_fusibility_op_interface.cc | ||
| init.cc | ||
| lhlo_ops.cc | ||
| mhlo_canonicalize.td | ||