aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-09-18 19:25:05 +0100
committerGitHub <noreply@github.com>2025-09-18 19:25:05 +0100
commit50b9ca4ddaea08fc72b7dcba1390c1689eed9a17 (patch)
tree5590ac002ff19458dad1cfef10c0862f2a72cd86 /llvm/lib/Support/CommandLine.cpp
parenta858c9071c25826d7d60af420e4dcf9106bf7cc0 (diff)
downloadllvm-50b9ca4ddaea08fc72b7dcba1390c1689eed9a17.zip
llvm-50b9ca4ddaea08fc72b7dcba1390c1689eed9a17.tar.gz
llvm-50b9ca4ddaea08fc72b7dcba1390c1689eed9a17.tar.bz2
[VPlan] Simplify Plan's entry in removeBranchOnConst. (#154510)
After https://github.com/llvm/llvm-project/pull/153643, there may be a BranchOnCond with constant condition in the entry block. Simplify those in removeBranchOnConst. This removes a number of redundant conditional branch from entry blocks. In some cases, it may also make the original scalar loop unreachable, because we know it will never execute. In that case, we need to remove the loop from LoopInfo, because all unreachable blocks may dominate each other, making LoopInfo invalid. In those cases, we can also completely remove the loop, for which I'll share a follow-up patch. Depends on https://github.com/llvm/llvm-project/pull/153643. PR: https://github.com/llvm/llvm-project/pull/154510
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions