HomePhabricator

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

Authored by jurahul on Jun 17 2020, 1:20 PM.

Description

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

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

Differential Revision: https://reviews.llvm.org/D82032

Details