[llvm] [LoopUnroll] Enhance the use of Optimization Remarks and LLVM_DEBUG (PR #178476)
Justin Fargnoli via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 28 10:57:04 PST 2026
================
@@ -707,20 +713,29 @@ UnrollCostEstimator::UnrollCostEstimator(
LoopSize = BEInsns + 1;
}
-bool UnrollCostEstimator::canUnroll() const {
- switch (Convergence) {
- case ConvergenceKind::ExtendedLoop:
- LLVM_DEBUG(dbgs() << " Convergence prevents unrolling.\n");
+bool UnrollCostEstimator::canUnroll(OptimizationRemarkEmitter *ORE,
+ const Loop *L) const {
+ // Helper to emit debug output and a missed optimization remark.
----------------
justinfargnoli wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/178476
More information about the llvm-commits
mailing list