XXX
authorTom Stellard <thomas.stellard@amd.com>
Fri, 26 Aug 2016 21:16:40 +0000 (21:16 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 26 Aug 2016 21:16:40 +0000 (21:16 +0000)
llvm-svn: 279868

llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp

index 90eda52..80fdd85 100644 (file)
@@ -108,7 +108,7 @@ SIRegisterInfo::SIRegisterInfo() : AMDGPURegisterInfo(),
   for (unsigned i = 0, e = getNumRegUnits(); i != e; ++i) {
     const int *PSets = getRegUnitPressureSets(i);
     for (unsigned j = 0; PSets[j] != -1; ++j) {
-      PressureSetRegUnits[PSets[j]]++;
+      ++PressureSetRegUnits[PSets[j]];
     }
   }