[llvm] r334451 - Simplify; NFC
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 11 15:58:32 PDT 2018
Author: gbiv
Date: Mon Jun 11 15:58:32 2018
New Revision: 334451
URL: http://llvm.org/viewvc/llvm-project?rev=334451&view=rev
Log:
Simplify; NFC
Not shown in the diff: AQ is a `vector<SUnit *>`, and SU is a `SUnit *`
Modified:
llvm/trunk/lib/Target/AMDGPU/R600MachineScheduler.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/R600MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/R600MachineScheduler.cpp?rev=334451&r1=334450&r2=334451&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/R600MachineScheduler.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/R600MachineScheduler.cpp Mon Jun 11 15:58:32 2018
@@ -459,7 +459,7 @@ SUnit* R600SchedStrategy::pickOther(int
}
if (!AQ.empty()) {
SU = AQ.back();
- AQ.resize(AQ.size() - 1);
+ AQ.pop_back();
}
return SU;
}
More information about the llvm-commits
mailing list