[all-commits] [llvm/llvm-project] 2bd738: [NFC][MachineInstr] Pass-by-value DebugLoc in Crea...
Mircea Trofin via All-commits
all-commits at lists.llvm.org
Mon Dec 6 19:45:27 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2bd7384d3a99edd345fcc5e8ee8d550bd65dddb2
https://github.com/llvm/llvm-project/commit/2bd7384d3a99edd345fcc5e8ee8d550bd65dddb2
Author: Mircea Trofin <mtrofin at google.com>
Date: 2021-12-06 (Mon, 06 Dec 2021)
Changed paths:
M llvm/include/llvm/CodeGen/MachineFunction.h
M llvm/lib/CodeGen/MachineFunction.cpp
Log Message:
-----------
[NFC][MachineInstr] Pass-by-value DebugLoc in CreateMachineInstr
DebugLoc is cheap to move, passing it by-val rather than const ref to
take advantage of the fact that it is consumed that way by the
MachineInstr ctor, which creates some optimization oportunities.
Differential Revision: https://reviews.llvm.org/D115208
More information about the All-commits
mailing list