[PATCH] D40155: AMDGPU: Fix breaking SMEM clauses

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 19:19:39 PST 2017


arsenm 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);
----------------
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.


https://reviews.llvm.org/D40155





More information about the llvm-commits mailing list