[PATCH] D35035: [InstCombine] Prevent memcpy generation for small data size

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 15:23:26 PDT 2018


lebedev.ri resigned from this revision.
lebedev.ri added a comment.

Not sure what is the general consensus wrt this patch, but i guess it now consistently uses bytes.



================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:140
+  unsigned LargestInt = DL.getLargestLegalIntTypeSizeInBits();
+  if (!LargestInt || Size > LargestInt/8)
+    return nullptr;
----------------
Nit: spaces around `/`.


Repository:
  rL LLVM

https://reviews.llvm.org/D35035





More information about the llvm-commits mailing list