[PATCH] D49775: [MCA] Avoid an InstrDesc copy in mca::LSUnit::reserve.
Dean Michael Berris via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 25 17:03:19 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL337985: [MCA] Avoid an InstrDesc copy in mca::LSUnit::reserve. (authored by dberris, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D49775?vs=157192&id=157403#toc
Repository:
rL LLVM
https://reviews.llvm.org/D49775
Files:
llvm/trunk/tools/llvm-mca/LSUnit.cpp
Index: llvm/trunk/tools/llvm-mca/LSUnit.cpp
===================================================================
--- llvm/trunk/tools/llvm-mca/LSUnit.cpp
+++ llvm/trunk/tools/llvm-mca/LSUnit.cpp
@@ -52,7 +52,7 @@
}
bool LSUnit::reserve(const InstRef &IR) {
- const InstrDesc Desc = IR.getInstruction()->getDesc();
+ const InstrDesc &Desc = IR.getInstruction()->getDesc();
unsigned MayLoad = Desc.MayLoad;
unsigned MayStore = Desc.MayStore;
unsigned IsMemBarrier = Desc.HasSideEffects;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49775.157403.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180726/b98aca03/attachment.bin>
More information about the llvm-commits
mailing list