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

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 24 10:10:55 PST 2021


nemanjai accepted this revision.
nemanjai added a comment.
This revision is now accepted and ready to land.

LGTM aside from a name and return type change.



================
Comment at: llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp:959
 // of vector code wrt. scalar code.
-InstructionCost PPCTTIImpl::vectorCostAdjustment(InstructionCost Cost,
-                                                 unsigned Opcode, Type *Ty1,
+InstructionCost PPCTTIImpl::vectorCostAdjustment(unsigned Opcode, Type *Ty1,
                                                  Type *Ty2) {
----------------
This should be returning `unsigned`. And the name should change to indicate that this is a factor.


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