[PATCH] D73744: [SCEV] SCEVExpander::isHighCostExpansionHelper(): cost-model min/max (PR44668)

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 7 08:35:24 PST 2020


lebedev.ri added inline comments.


================
Comment at: llvm/lib/Analysis/ScalarEvolutionExpander.cpp:2286
     case scAddExpr:
-      Opcode = Instruction::Add;
+      PairCost = TTI.getOperationCost(Instruction::Add, OpType);
       break;
----------------
samparker wrote:
> getArithmeticInstrCost?
Will reply in D73501


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73744





More information about the llvm-commits mailing list