[llvm-branch-commits] [llvm] [profcheck][SimplifyCFG] Propagate !prof from `switch` to `select` (PR #159645)
Mircea Trofin via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Sep 18 13:21:15 PDT 2025
================
@@ -1,5 +1,5 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals
+; RUN: opt < %s -passes=prof-inject,simplifycfg -profcheck-weights-for-test -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
----------------
mtrofin wrote:
Note: this test is perfect in that it covers all the cases in the change (verified with some appropriately - placed `dbgs()`). To avoid cumbersomely adding `!prof` everywhere, we're using the feature introduced in the previous patch.
https://github.com/llvm/llvm-project/pull/159645
More information about the llvm-branch-commits
mailing list