mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 00:10:37 +00:00
Fix uninitialized memory read found by MemorySanitizer: always set output parameter of ConvergingScheduler::SchedBoundary::getOtherResourceCount
llvm-svn: 186658
This commit is contained in:
parent
51ced11831
commit
5ab22e39d5
@ -1593,6 +1593,7 @@ findMaxLatency(ArrayRef<SUnit*> ReadySUs) {
|
||||
// resource index, or zero if the zone is issue limited.
|
||||
unsigned ConvergingScheduler::SchedBoundary::
|
||||
getOtherResourceCount(unsigned &OtherCritIdx) {
|
||||
OtherCritIdx = 0;
|
||||
if (!SchedModel->hasInstrSchedModel())
|
||||
return 0;
|
||||
|
||||
@ -1600,7 +1601,6 @@ getOtherResourceCount(unsigned &OtherCritIdx) {
|
||||
+ (RetiredMOps * SchedModel->getMicroOpFactor());
|
||||
DEBUG(dbgs() << " " << Available.getName() << " + Remain MOps: "
|
||||
<< OtherCritCount / SchedModel->getMicroOpFactor() << '\n');
|
||||
OtherCritIdx = 0;
|
||||
for (unsigned PIdx = 1, PEnd = SchedModel->getNumProcResourceKinds();
|
||||
PIdx != PEnd; ++PIdx) {
|
||||
unsigned OtherCount = getResourceCount(PIdx) + Rem->RemainingCounts[PIdx];
|
||||
|
Loading…
x
Reference in New Issue
Block a user