diff options
| author | Alina Sbirlea <asbirlea@google.com> | 2018-07-28 00:01:05 +0000 |
|---|---|---|
| committer | Alina Sbirlea <asbirlea@google.com> | 2018-07-28 00:01:05 +0000 |
| commit | 5666c7e4bd629bb6329cf8ac498507ef7bef673c (patch) | |
| tree | 9dbe59963f1b52fa6277b1b0d700a5b826a90b78 /llvm/lib/CodeGen | |
| parent | 7bb4de47c9fc9b180d12dcd16d5d8a7e6596e432 (diff) | |
| download | bcm5719-llvm-5666c7e4bd629bb6329cf8ac498507ef7bef673c.tar.gz bcm5719-llvm-5666c7e4bd629bb6329cf8ac498507ef7bef673c.zip | |
[SimpleLoopUnswitch] Fix DT updates for trivial branch unswitching.
Summary:
Fixing 2 issues with the DT update in trivial branch switching, though I don't have a case where DT update fails.
1. After splitting ParentBB->UnswitchedBB edge, new edges become: ParentBB->LoopExitBB->UnswitchedBB, so remove ParentBB->LoopExitBB edge.
2. AFAIU, for multiple CFG changes, DT should be updated using batch updates, vs consecutive addEdge and removeEdge calls.
Reviewers: chandlerc, kuhar
Subscribers: sanjoy, jlebar, llvm-commits
Differential Revision: https://reviews.llvm.org/D49925
llvm-svn: 338180
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions

