[llvm] [ProfInfo] Fix integer overflow in getDisjunctionWeights (PR #189079)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 27 13:48:16 PDT 2026


================
@@ -0,0 +1,87 @@
+; RUN: opt -passes=simplifycfg -S %s | FileCheck %s
+;
+; Minimized regression for repeated branch-weight disjunction in SimplifyCFG.
+; We build a test-and-set ladder that SimplifyCFG merges through
+; mergeConditionalStores. The resulting synthesized branch must keep !prof.
+;
+; CHECK-LABEL: define void @test(
+; CHECK-LABEL: entry:
+; CHECK: br i1 %{{[0-9]+}}, label %{{[0-9]+}}, label %{{[0-9]+}}, !prof ![[BW:[0-9]+]]
----------------
boomanaiden154 wrote:

Given we have a CHECK line asserting that we do have the profile metadata, we shouldn't need a `CHECK-NOT`.

https://github.com/llvm/llvm-project/pull/189079


More information about the llvm-commits mailing list