[PATCH] D80621: [CodeGen] Fix warnings in LowerToPredicatedOp

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 29 07:35:00 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG205085d4ccf9: [CodeGen] Fix warnings in LowerToPredicatedOp (authored by david-arm).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80621

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp


Index: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
===================================================================
--- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -7734,8 +7734,8 @@
          Op.getOperand(1).getValueType().isScalableVector() &&
          "Only scalable vectors are supported");
 
-  auto PredTy = VT.getVectorVT(*DAG.getContext(), MVT::i1,
-                               VT.getVectorNumElements(), true);
+  auto PredTy =
+      VT.getVectorVT(*DAG.getContext(), MVT::i1, VT.getVectorElementCount());
   SDValue Mask = getPTrue(DAG, DL, PredTy, AArch64SVEPredPattern::all);
 
   SmallVector<SDValue, 4> Operands = {Mask};


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80621.267231.patch
Type: text/x-patch
Size: 708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200529/66eb4fc9/attachment.bin>


More information about the llvm-commits mailing list