[PATCH] D48467: [X86] Recognize a splat of negate in isFNEG
Easwaran Raman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 16 16:02:24 PDT 2018
eraman marked 2 inline comments as done.
eraman added inline comments.
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:36829
- } else if (auto *C = getTargetConstantFromNode(Op1)) {
- if (C->getType()->isVectorTy()) {
- if (auto *SplatV = C->getSplatValue())
- if (isSignMask(cast<ConstantFP>(SplatV)))
+ } else if (BuildVectorSDNode *BV = dyn_cast<BuildVectorSDNode>(Op1)) {
+ if (ConstantFPSDNode *CN = BV->getConstantFPSplatNode())
----------------
RKSimon wrote:
> auto *BV = dyn_cast<BuildVectorSDNode>(Op1)
I have also changed the following line to
if (auto *CN = BV->getConstantFPSplatNode())
Repository:
rL LLVM
https://reviews.llvm.org/D48467
More information about the llvm-commits
mailing list