[PATCH] D38732: [X86][AVX512] Improve lowering of AVX512 test intrinsics
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 08:06:22 PDT 2017
RKSimon added a comment.
Add the new test files to trunk with current codegen and then rebase to show the diff from this patch.
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:17191
+ if(A.getOpcode() == ISD::AND && ISD::isBuildVectorAllZeros(B.getNode())) {
+ //assert(! ISD::isBuildVectorAllZeros(B.getNode()));
+ MVT VT0 = Op0.getSimpleValueType();
----------------
Drop this
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:17194
+ SDValue RHS = DAG.getNode(ISD::BITCAST, dl, VT0, A.getOperand(0));
+ SDValue LHS = DAG.getNode(ISD::BITCAST, dl, VT0, A.getOperand(1));
+ return DAG.getNode(Opc == X86ISD::PCMPEQM ? X86ISD::TESTNM : X86ISD::TESTM,
----------------
Use DAG.getBitcast
https://reviews.llvm.org/D38732
More information about the llvm-commits
mailing list