[PATCH] D66236: [SDAG][x86] check for relaxed math when matching an FP reduction
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 12:33:55 PDT 2019
spatel marked 2 inline comments as done.
spatel added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:9051
// <1,u,u,u,u,u,u,u>
+ unsigned Stages = Log2_32(Op.getValueType().getVectorNumElements());
SDValue PrevOp;
----------------
lebedev.ri wrote:
> precommit?
Yes, will do.
================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:35487
unsigned HorizOpcode = Opc == ISD::ADD ? X86ISD::HADD : X86ISD::FHADD;
----------------
craig.topper wrote:
> So was the FP part of this just unusable before now?
Yes - afaict, we put in the ability for FP down here, but there's no way that was getting down here without matching the reduction.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66236/new/
https://reviews.llvm.org/D66236
More information about the llvm-commits
mailing list