mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 18:31:36 +00:00
Fix uninitialized memory read found by MemorySanitizer: always set output parameter of ConvergingScheduler::SchedBoundary::getOtherResourceCount
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df5ed3f642
commit
86dc6f9a79
@ -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