[PATCH] D29798: [AMDGPU] Override PSet for M0

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 16:55:06 PST 2017


rampitec marked 2 inline comments as done.
rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/SIRegisterInfo.cpp:1336-1337
+
+  if (hasRegUnit(AMDGPU::M0, RegUnit))
+    return Empty;
+  return AMDGPURegisterInfo::getRegUnitPressureSets(RegUnit);
----------------
arsenm wrote:
> Is == M0 sufficient? m0 should be its own regunit since it can't be a subregister
Yes, it is in its own RegUnit, and RegUnit is what we get here. This test yields true for M0 and only for M0 because it does not share a RegUnit with any other register.


Repository:
  rL LLVM

https://reviews.llvm.org/D29798





More information about the llvm-commits mailing list