[PATCH] D120231: [SelectOpti][3/5] Base Heuristics

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 22:15:46 PDT 2022


davidxl added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectOptimize.cpp:474
+      InstructionCost AdjSliceCost =
+          divideNearest(SliceCost * HotWeight, TotalWeight);
+      if (AdjSliceCost >=
----------------
Is there a concern on the overflow of the multiplication? Probably not if the meta data weight is 32 bit.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120231



More information about the llvm-commits mailing list