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

Christopher Tetreault via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 10:05:55 PDT 2020


Author: Christopher Tetreault
Date: 2020-06-04T10:05:38-07:00
New Revision: c2625f330f48f42b44727f4fdf13a688c9fecc8f

URL: https://github.com/llvm/llvm-project/commit/c2625f330f48f42b44727f4fdf13a688c9fecc8f
DIFF: https://github.com/llvm/llvm-project/commit/c2625f330f48f42b44727f4fdf13a688c9fecc8f.diff

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

Reviewers: efriedma, jnspaulsson, kmclaughlin, sdesmalen, samparker, uweigand

Reviewed By: uweigand

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80329

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
index bce02cc793bf..bc333d905320 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
@@ -663,7 +663,7 @@ static Type *getCmpOpsType(const Instruction *I, unsigned VF = 1) {
     // 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;


        


More information about the llvm-commits mailing list