Skip to content

Conversation

mtrofin
Copy link
Member

@mtrofin mtrofin commented Oct 7, 2025

Along the lines of #161240

Copy link
Member Author

mtrofin commented Oct 7, 2025

@llvmbot
Copy link
Member

llvmbot commented Oct 7, 2025

@llvm/pr-subscribers-llvm-transforms

Author: Mircea Trofin (mtrofin)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/162212.diff

1 Files Affected:

  • (modified) llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp (+2)
diff --git a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
index e9a3e983bc1e2..cb4d58dc8213b 100644
--- a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
@@ -89,6 +89,7 @@ STATISTIC(NumTransforms, "Number of transformations done");
 STATISTIC(NumCloned, "Number of blocks cloned");
 STATISTIC(NumPaths, "Number of individual paths threaded");
 
+namespace llvm {
 static cl::opt<bool>
     ClViewCfgBefore("dfa-jump-view-cfg-before",
                     cl::desc("View the CFG before DFA Jump Threading"),
@@ -119,6 +120,7 @@ static cl::opt<unsigned>
     CostThreshold("dfa-cost-threshold",
                   cl::desc("Maximum cost accepted for the transformation"),
                   cl::Hidden, cl::init(50));
+} // namespace llvm
 
 namespace {
 

@mtrofin mtrofin requested a review from nhaehnle October 7, 2025 02:13
Copy link
Member Author

mtrofin commented Oct 7, 2025

Merge activity

  • Oct 7, 2:28 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Oct 7, 2:30 PM UTC: @mtrofin merged this pull request with Graphite.

@mtrofin mtrofin merged commit 95144b1 into main Oct 7, 2025
13 checks passed
@mtrofin mtrofin deleted the users/mtrofin/10-06-_nfc_dfajt_place_cl_opt_s_in_the_llvm_namespace branch October 7, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants