This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] [NFC] Use llvm::hasSingleElement() in place of .size() == 1
ClosedPublic

Authored by jurahul on Jun 17 2020, 10:58 AM.

Details

Summary
  • Also use functions in the Region class instead of Region::getBlocks() where possible.

Diff Detail

Event Timeline

jurahul created this revision.Jun 17 2020, 10:58 AM
jurahul retitled this revision from [NFC] Use llvm::hasSingleElement() in place of .size() == 1 to [MLIR] [NFC] Use llvm::hasSingleElement() in place of .size() == 1.Jun 17 2020, 10:59 AM
jurahul edited the summary of this revision. (Show Details)
jurahul added a reviewer: mehdi_amini.
rriddle accepted this revision.Jun 17 2020, 11:21 AM

Thanks!

This revision is now accepted and ready to land.Jun 17 2020, 11:21 AM
aartbik accepted this revision.Jun 17 2020, 12:35 PM
This revision was automatically updated to reflect the committed changes.