[PATCH] D40155: AMDGPU: Fix breaking SMEM clauses

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 19:21:58 PST 2017


rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/GCNHazardRecognizer.cpp:280
+void GCNHazardRecognizer::addClauseInst(const MachineInstr &MI) {
+  // XXX: Do we need to worry about implicit operands
+  addRegsToSet(TRI, MI.defs(), ClauseDefs);
----------------
arsenm wrote:
> t-tye wrote:
> > Can implicit operands be registers? Is the only such case M0 which can never be modified. So probably not?
> Implicit operands are only registers. In this case it could only be operands that aren't actually read or written by the instruction, but something added them for modeling some other constraint.
We can impdef VCC, but I do not believe it has anything to do with the clauses.


https://reviews.llvm.org/D40155





More information about the llvm-commits mailing list