This is an archive of the discontinued LLVM Phabricator instance.

[mlir][drr] NFC: avoid SmallVector when collecting substitution values
ClosedPublic

Authored by antiagainst on Apr 23 2020, 3:37 PM.

Details

Summary

Now both Operation::operand_range and Operation::result_range have
.begin() and .end() for ranged-based for loop and we have
ValueRange for wrapping a single Value. We can remove the SmallVector
materialization!

Diff Detail

Event Timeline

antiagainst created this revision.Apr 23 2020, 3:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 23 2020, 3:37 PM
rriddle accepted this revision.Apr 23 2020, 3:41 PM
This revision is now accepted and ready to land.Apr 23 2020, 3:41 PM

Fix accidential line join

jpienaar accepted this revision.Apr 24 2020, 6:31 AM

Yay, thanks

This revision was automatically updated to reflect the committed changes.

This may have caused a breakage: https://buildkite.com/mlir/mlir-core/builds/4411 [first commit post green build that touches MLIR]