[llvm] [SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (PR #90217)
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 26 10:37:50 PDT 2024
================
@@ -0,0 +1,72 @@
+; Checks that we are able to handle overflowing counters correctly.
+
+; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/overflow.proftext | opt -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s
+
+; Original Source:
+; int sqrt(int);
+; int lol(int i) {
----------------
MatzeB wrote:
this function name doesn't match the IR... Though FWIW this seems so simple a function, can just as well remove the whole "Original Source" part in this case as far as I am concerned...
https://github.com/llvm/llvm-project/pull/90217
More information about the llvm-commits
mailing list