[PATCH] D25849: [GVN] Prevent load coercion with irregular vector types

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 20 17:13:07 PDT 2016


majnemer added inline comments.


================
Comment at: lib/Transforms/Scalar/GVN.cpp:724
+  // going to crash later now anyway.
+  if ((((DL.getTypeSizeInBits(StoredVal->getType()) + 7) / 8) * 8) !=
+      DL.getTypeSizeInBits(StoredVal->getType()))
----------------
Isn't this llvm::alignTo? Any thoughts on sorting this check before the previous one? I see this check as a sort of sanity check.


https://reviews.llvm.org/D25849





More information about the llvm-commits mailing list