[Mlir-commits] [mlir] [mlir][SCF] Improve `ForOp::getSuccessorRegions` (PR #177116)
Jakub Kuderski
llvmlistbot at llvm.org
Wed Jan 21 06:04:06 PST 2026
================
@@ -704,6 +704,27 @@ OperandRange ForOp::getEntrySuccessorOperands(RegionSuccessor successor) {
void ForOp::getSuccessorRegions(RegionBranchPoint point,
SmallVectorImpl<RegionSuccessor> ®ions) {
+ std::optional<APInt> tripCount = getStaticTripCount();
+ if (tripCount.has_value()) {
----------------
kuhar wrote:
```suggestion
if (std::optional<APInt> tripCount = getStaticTripCount()) {
```
https://github.com/llvm/llvm-project/pull/177116
More information about the Mlir-commits
mailing list