This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Avoid unnecessary copies in SCF's OneToNTypeConversions. (NFC)
ClosedPublic

Authored by ingomueller-net on Jul 6 2023, 11:06 PM.

Details

Summary

In two places, a ResultRange was copied into a SmallVector just to be
passed as a ValueRange argument. With this patch, the ResultRanges are
passed directly, avoiding a copy.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 11:06 PM
ingomueller-net requested review of this revision.Jul 6 2023, 11:06 PM

Trivial NFC change. Will self-accept when CI passed.

@sabauma: Thanks for fixing this in your code -- that made me realize I could do the same ;)

ingomueller-net accepted this revision.Jul 7 2023, 2:15 AM
This revision is now accepted and ready to land.Jul 7 2023, 2:15 AM