[llvm-branch-commits] [llvm] [profcheck][SimplifyCFG] Propagate !prof from `switch` to `select` (PR #159645)

2025-09-19 Thread Alan Zhao via llvm-branch-commits
https://github.com/alanzhao1 commented: In general this patch LGTM. I noticed that one downside of using `-profcheck-weights-for-test` is that the original branch weights aren't in the test, so it's hard for me to understand how this change modifies the branch weights. https://github.com/llvm

[llvm-branch-commits] [llvm] [SimplifyCFG][profcheck] Handle branch weights in `simplifySwitchLookup` (PR #161739)

2025-10-18 Thread Alan Zhao via llvm-branch-commits
https://github.com/alanzhao1 approved this pull request. https://github.com/llvm/llvm-project/pull/161739 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [SimplifyCFG][profcheck] Profile propagation for `indirectbr` (PR #161747)

2025-10-17 Thread Alan Zhao via llvm-branch-commits
@@ -8,15 +8,19 @@ declare void @A() declare void @B(i32) declare void @C() -define void @indbrtest0(ptr %P, ptr %Q) { +;. +; CHECK: @anchor = constant [13 x ptr] [ptr blockaddress(@indbrtest3, %L1), ptr blockaddress(@indbrtest3, %L2), ptr inttoptr (i32 1 to ptr), ptr blockad

[llvm-branch-commits] [llvm] [NFC] Leave a comment in `Local.cpp` about debug info & sample profiling (PR #155296)

2025-08-28 Thread Alan Zhao via llvm-branch-commits
https://github.com/alanzhao1 approved this pull request. https://github.com/llvm/llvm-project/pull/155296 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [IR] Add `MD_prof` to the `Keep` list of `dropUBImplyingAttrsAndMetadata` (PR #154635)

2025-08-28 Thread Alan Zhao via llvm-branch-commits
https://github.com/alanzhao1 approved this pull request. https://github.com/llvm/llvm-project/pull/154635 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [LSCFG][profcheck] Add dummy branch weights for the dummy switch to dead exits (PR #164714)

2025-10-30 Thread Alan Zhao via llvm-branch-commits
https://github.com/alanzhao1 approved this pull request. https://github.com/llvm/llvm-project/pull/164714 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [LIR][profcheck] Reuse the loop's exit condition profile (PR #164523)

2025-10-30 Thread Alan Zhao via llvm-branch-commits
https://github.com/alanzhao1 approved this pull request. https://github.com/llvm/llvm-project/pull/164523 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [SLU][profcheck] Use the original branch weigths in `buildPartialInvariantUnswitchConditionalBranch` (PR #164270)

2025-10-30 Thread Alan Zhao via llvm-branch-commits
https://github.com/alanzhao1 approved this pull request. https://github.com/llvm/llvm-project/pull/164270 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [SLU][profcheck] create likely branch weights for guard->branch (PR #164271)

2025-10-30 Thread Alan Zhao via llvm-branch-commits
https://github.com/alanzhao1 approved this pull request. https://github.com/llvm/llvm-project/pull/164271 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [LVer][profcheck] explicitly set unknown branch weights for the versioned/unversioned selector (PR #164507)

2025-10-21 Thread Alan Zhao via llvm-branch-commits
https://github.com/alanzhao1 approved this pull request. https://github.com/llvm/llvm-project/pull/164507 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits