HomePhabricator

VFS: Avoid some unnecessary std::string copies

Description

VFS: Avoid some unnecessary std::string copies

Thread Twine a little deeper through the VFS to avoid unnecessarily
constructing the same std::string twice in a parameter sequence:

Twine -> std::string -> StringRef -> std::string

Changing a few parameters from StringRef to Twine avoids the early call
to Twine::str().

Details

Committed
dexonsmithFeb 23 2019, 3:48 PM
Parents
rL354738: [TwoAddressInstructionPass] After commuting an instruction and before trying to…
Branches
Unknown
Tags
Unknown