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

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 06:44:40 PST 2020


samparker added inline comments.


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


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