[PATCH] D114640: [PowerPC] Handle Vector Sum Reduction

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 17 06:52:27 PST 2021


stefanp added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp:93
+  // Only expand types that are fed by zero extends or sign extends.
+  if (OperandInstr->getOpcode() != Instruction::SExt &&
+      OperandInstr->getOpcode() != Instruction::ZExt)
----------------
amyk wrote:
> I think it would be good to save the opcode first, and then use it in this condition.
Sounds good. I will do that!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114640/new/

https://reviews.llvm.org/D114640



More information about the llvm-commits mailing list