[PATCH] D26633: AMDGPU/GCN: Exit early in hazard recognizer if there is no vreg argument

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 16:04:26 PST 2016


arsenm added inline comments.


================
Comment at: lib/Target/AMDGPU/GCNHazardRecognizer.cpp:399-403
   if (VDataIdx != -1)
     VDataRCID = Desc.OpInfo[VDataIdx].RegClass;
+  else
+    return -1;
 
----------------
Could you invert this so it's an if (== -1) return -1


Repository:
  rL LLVM

https://reviews.llvm.org/D26633





More information about the llvm-commits mailing list