diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2019-06-10 12:50:08 +0000 |
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2019-06-10 12:50:08 +0000 |
| commit | 47db08dbb19cc326e7002b0068237e1b92bd529e (patch) | |
| tree | 3522e837fca42a0ee61bc1d17a21261d9125ad0c /llvm/lib | |
| parent | b67333f283c03a065a92241054c630d651b181ad (diff) | |
| download | bcm5719-llvm-47db08dbb19cc326e7002b0068237e1b92bd529e.tar.gz bcm5719-llvm-47db08dbb19cc326e7002b0068237e1b92bd529e.zip | |
[MCA] Further refactor the bottleneck analysis view. NFCI.
llvm-svn: 362933
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MCA/HardwareUnits/Scheduler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MCA/HardwareUnits/Scheduler.cpp b/llvm/lib/MCA/HardwareUnits/Scheduler.cpp index c7091203595..0f0f2ffb832 100644 --- a/llvm/lib/MCA/HardwareUnits/Scheduler.cpp +++ b/llvm/lib/MCA/HardwareUnits/Scheduler.cpp @@ -198,7 +198,8 @@ InstRef Scheduler::select() { Strategy->compare(IR, ReadySet[QueueIndex])) { Instruction &IS = *IR.getInstruction(); uint64_t BusyResourceMask = Resources->checkAvailability(IS.getDesc()); - IS.setCriticalResourceMask(BusyResourceMask); + if (BusyResourceMask) + IS.setCriticalResourceMask(BusyResourceMask); BusyResourceUnits |= BusyResourceMask; if (!BusyResourceMask) QueueIndex = I; |

