[PATCH] D46179: [X86] Lowering adds/addus/subs/subus intrinsics to native IR (LLVM part)
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 20 14:23:47 PDT 2018
craig.topper requested changes to this revision.
craig.topper added inline comments.
This revision now requires changes to proceed.
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:36873
+ for (unsigned i = 0; i < NumOperands; ++i) {
+ APInt Elt = cast<ConstantSDNode>(Op.getOperand(i))->getAPIntValue();
+ if ((Signed && Elt.isSignedIntN(EltSize)) ||
----------------
isBuildVectorConstantSDNodes allows undef elements which will fail this cast. You need to add a skip for undef. Please add test cases.
Repository:
rL LLVM
https://reviews.llvm.org/D46179
More information about the llvm-commits
mailing list