[PATCH] D89312: [SVE][CodeGen]Use TypeSize comparison functions in clang

Caroline via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 13 09:20:42 PDT 2020


CarolineConcatto updated this revision to Diff 297884.
CarolineConcatto added a comment.

-Use getFixedSize instead of isKnowXY


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89312

Files:
  clang/lib/CodeGen/CGBuiltin.cpp


Index: clang/lib/CodeGen/CGBuiltin.cpp
===================================================================
--- clang/lib/CodeGen/CGBuiltin.cpp
+++ clang/lib/CodeGen/CGBuiltin.cpp
@@ -5599,8 +5599,8 @@
 
   Value *Result = CGF.EmitNeonCall(F, Ops, s);
   llvm::Type *ResultType = CGF.ConvertType(E->getType());
-  if (ResultType->getPrimitiveSizeInBits() <
-      Result->getType()->getPrimitiveSizeInBits())
+  if (ResultType->getPrimitiveSizeInBits().getFixedSize() <
+      Result->getType()->getPrimitiveSizeInBits().getFixedSize())
     return CGF.Builder.CreateExtractElement(Result, C0);
 
   return CGF.Builder.CreateBitCast(Result, ResultType, s);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89312.297884.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201013/ccc4e324/attachment-0001.bin>


More information about the cfe-commits mailing list