[PATCH] D44786: Lowering x86 adds/addus/subs/subus intrinsics (clang)
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 29 09:44:59 PDT 2018
craig.topper accepted this revision.
craig.topper added a comment.
This revision is now accepted and ready to land.
LGTM with that one comment.
================
Comment at: lib/CodeGen/CGBuiltin.cpp:8288
+ llvm::Type *ElementType = ResultType->getVectorElementType();
+ llvm::Type *ExtElementType = ElementType == CGF.Builder.getInt8Ty()
+ ? CGF.Builder.getInt16Ty()
----------------
You could probably just do ResultType->getScalarSizeInBits() == 8
Repository:
rC Clang
https://reviews.llvm.org/D44786
More information about the cfe-commits
mailing list