[PATCH] D36171: AMDGPU: Use direct struct returns

Brian Sumner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 7 12:59:23 PDT 2017


b-sumner added inline comments.


================
Comment at: lib/CodeGen/TargetInfo.cpp:7555
+      if (NumRegsLeft > 0)
+        NumRegsLeft -= (Size + 31) / 32;
+
----------------
Won't NumRegsLeft wrap if size==64 and NumRegsLeft == 1 potentially causing an assert later?


https://reviews.llvm.org/D36171





More information about the cfe-commits mailing list