[all-commits] [llvm/llvm-project] fbb241: use ref to avoid copy in range for-loop
XinWang10 via All-commits
all-commits at lists.llvm.org
Sun May 28 19:24:46 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fbb241c5523c07842af6cbe7a3a5a1c6513f1302
https://github.com/llvm/llvm-project/commit/fbb241c5523c07842af6cbe7a3a5a1c6513f1302
Author: Wang, Xin10 <xin10.wang at intel.com>
Date: 2023-05-28 (Sun, 28 May 2023)
Changed paths:
M llvm/include/llvm/MC/MCParser/MCAsmParser.h
M llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
M llvm/lib/CodeGen/MIRParser/MIRParser.cpp
M llvm/lib/ObjectYAML/MachOEmitter.cpp
M llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp
Log Message:
-----------
use ref to avoid copy in range for-loop
Use big obj copy in range for-loop will call copy constructor every time,
which can be avoided by use ref instead.
Reviewed By: skan
Differential Revision: https://reviews.llvm.org/D150024
More information about the All-commits
mailing list