Files
llvm-project/mlir/lib/Interfaces/ControlFlowInterfaces.cpp
Yang Bai 9d94bdace1 [mlir][Interfaces][NFC] Add early exit to MakeRegionBranchOpSuccessorInputsDead (#186325)
Optimize MakeRegionBranchOpSuccessorInputsDead patterns in
`ControlFlowInterfaces.cpp`:

- Add early exit to `computeReachableValuesFromSuccessorInput` when the
caller only needs to know if there is exactly one reachable value,
avoiding unnecessary traversal.

Assisted-by: Claude Code

Co-authored-by: Yang Bai <yangb@nvidia.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 01:17:12 +08:00

53 KiB