[PATCH] D68632: [X86] Make memcmp() use PTEST if possible and also enable AVX1
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 09:55:00 PDT 2019
craig.topper added inline comments.
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:42431
+ auto PT = DAG.getNode(X86ISD::PTEST, DL, MVT::i32, BCCmp, BCCmp);
+ auto SetCC = getSETCC(CC == ISD::SETEQ ? X86::COND_E : X86::COND_NE, PT, DL, DAG);
+ return DAG.getNode(ISD::TRUNCATE, DL, VT, SetCC.getValue(0));
----------------
80 columns
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68632/new/
https://reviews.llvm.org/D68632
More information about the llvm-commits
mailing list