[PATCH] D20262: [DSE]Split memset when the memset is small enough to be lowered to stores

Jun Bum Lim via llvm-commits llvm-commits at lists.llvm.org
Tue May 24 13:23:26 PDT 2016

junbuml added inline comments.

Comment at: lib/Transforms/Scalar/DeadStoreElimination.cpp:238
@@ +237,3 @@
+  if (MaxIntSize == 0)
+    MaxIntSize = 1;
dberlin wrote:
> How and when can this happen?
If there is no information about LegalIntWidth extracted from datalayout, this could be 0.  If we remove the target datalayout in input IR, this will be 0.


More information about the llvm-commits mailing list