[llvm] [LoopInterchange] Fix overflow in cost calculation (PR #111807)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 13:21:18 PST 2024
================
@@ -31,7 +32,7 @@ class ScalarEvolution;
class SCEV;
class TargetTransformInfo;
-using CacheCostTy = int64_t;
+using CacheCostTy = InstructionCost;
----------------
fhahn wrote:
Personally I find it more inconvenient to hide the actual type behind another level of indirection, but changing it in this patch would unnecessarily increase the diff.
https://github.com/llvm/llvm-project/pull/111807
More information about the llvm-commits
mailing list