[MLIR][NFC] Minor cleanup in liveness.
authorRahul Joshi <jurahul@google.com>
Fri, 23 Jul 2021 20:12:31 +0000 (13:12 -0700)
committerRahul Joshi <jurahul@google.com>
Fri, 23 Jul 2021 20:30:02 +0000 (13:30 -0700)
commit17de7ed556ad8df3d2dcaa9322a792fc70243194
treec7fd957830446087d5af3b5616c5ebe26854dfba
parent3c2c9851634ab5889377b0457fac0b7bb79a935b
[MLIR][NFC] Minor cleanup in liveness.

- Rename isLastUse to isDeadAfter to reflect what the function does.
- Avoid a second walk over all operations in BlockInfoBuilder constructor.
- use std::move() to save the new in set.

Differential Revision: https://reviews.llvm.org/D106702
mlir/include/mlir/Analysis/Liveness.h
mlir/lib/Analysis/Liveness.cpp