[PATCH] D80329: [SVE] Eliminate calls to default-false VectorType::get() from SystemZ

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 20 15:27:33 PDT 2020


ctetreau created this revision.
Herald added subscribers: llvm-commits, psnobl, rkruppe, hiraditya, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
ctetreau added reviewers: jnspaulsson, kmclaughlin, sdesmalen.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80329

Files:
  llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp


Index: llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
+++ llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
@@ -663,7 +663,7 @@
     // Return the potentially vectorized type based on 'I' and 'VF'.  'I' may
     // be either scalar or already vectorized with a same or lesser VF.
     Type *ElTy = OpTy->getScalarType();
-    return VectorType::get(ElTy, VF);
+    return FixedVectorType::get(ElTy, VF);
   }
 
   return nullptr;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80329.265360.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200520/2a295f26/attachment.bin>


More information about the llvm-commits mailing list