[PATCH] D67186: [ARM] Masked loads and stores

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 12 08:53:53 PDT 2019


SjoerdMeijer accepted this revision.
SjoerdMeijer added a comment.
This revision is now accepted and ready to land.

LGTM, with a nit inline



================
Comment at: llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp:494
 
+bool ARMTTIImpl::isLegalMaskedLoad(Type *DataTy) {
+  if (!EnableMaskedLoadStores || !ST->hasMVEIntegerOps())
----------------
You pointed out to me that this is new, and more correct than before. ;-)
This is what I tried to fix in the D67005, which I will abandon, because this looks good to me.


================
Comment at: llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp:502
+    unsigned VecWidth = DataTy->getPrimitiveSizeInBits();
+    if (VecWidth != 128)
+      return false;
----------------
Better is to replace `128` with `TTI->getRegisterBitWidth(true)`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67186/new/

https://reviews.llvm.org/D67186





More information about the llvm-commits mailing list