mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[MCA] Avoid an InstrDesc copy in mca::LSUnit::reserve.
Summary: InstrDesc contains 4 vectors (as well as some other data), so it's expensive to copy. Authored By: orodley Reviewers: andreadb, mattd, dberris Reviewed By: mattd, dberris Subscribers: dberris, gbedwell, llvm-commits Differential Revision: https://reviews.llvm.org/D49775 llvm-svn: 337985
This commit is contained in:
parent
9b3b498f03
commit
79adceb6c6
@ -52,7 +52,7 @@ void LSUnit::assignSQSlot(unsigned Index) {
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user