[PATCH] D49562: [X86][SSE] Use ISD::MULHU for constant/non-zero ISD::SRL lowering (PR38151)
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 22 14:47:16 PDT 2018
craig.topper added inline comments.
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:23516
+ // TODO: Add support for the shift by zero special case.
+ if (Op.getOpcode() == ISD::SRL && !Subtarget.hasAVX512() && ConstantAmt &&
+ ((Subtarget.hasSSE41() && VT == MVT::v8i16) ||
----------------
Why are we punting with hasAVX512(). We don't get a variable shift of words until hasBWI.
Repository:
rL LLVM
https://reviews.llvm.org/D49562
More information about the llvm-commits
mailing list