[PATCH] D113900: [PowerPC] Prevent the optimizer from producing wide vector types in IR.

Lei Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 24 11:41:34 PST 2021


lei accepted this revision.
lei added a comment.

LGTM other then the comment about the unecessary code block.



================
Comment at: llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp:1038-1043
+  if (I) {
+    InstructionCost CostFactor =
+        vectorCostAdjustment(Opcode, I->getType(), nullptr);
+    if (CostFactor == -1U)
+      return InstructionCost::getMax();
+  }
----------------
I don't think this is needed....


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113900



More information about the llvm-commits mailing list