[PATCH] D30439: [AMDGPU] New method to estimate register pressure

Valery Pykhtin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 08:46:54 PST 2017


vpykhtin added inline comments.


================
Comment at: lib/Target/AMDGPU/GCNSchedStrategy.cpp:396
+  const SIRegisterInfo *SRI = static_cast<const SIRegisterInfo*>(TRI);
+  SlotIndex SI = LIS->getInstructionIndex(*begin());
+  assert (SI.isValid());
----------------
rampitec wrote:
> vpykhtin wrote:
> > Should this specify slot type explicitly? Something like LIS->getInstructionIndex(*begin()).getBaseIndex() ? I just don't know which slot will be returned by default. For example if it return dead slot you will get ranges that actually live after the instruction.
> It actually returns first MI in a bundle if any:
> 
> ```
> Mi2IndexMap::const_iterator itr = mi2iMap.find(getBundleStart(MI));
> 
> ```
> I guess that is what I'm looking here for.
Right, but what is a slot type for this first bundle instruction?


Repository:
  rL LLVM

https://reviews.llvm.org/D30439





More information about the llvm-commits mailing list