There are two cases where a block is merged into its predecessor and the
MergeBlockIntoPredecessor API is not used. Update the API so it can be
reused in the other cases, in order to avoid code duplication.
Cleanup motivated by D68659.
Paths
| Differential D68670
[Utils] Cleanup similar cases to MergeBlockIntoPredecessor. ClosedPublic Authored by asbirlea on Oct 8 2019, 4:13 PM.
Details Summary There are two cases where a block is merged into its predecessor and the Cleanup motivated by D68659.
Diff Detail
Event TimelineComment Actions Nit: rename optional argument. Comment Actions I don't immediately see any issues with this patch, but it's outside of my area of expertise, so I'll defer to the other reviewers :)
Closed by commit rG4eb1a573fab3: [Utils] Cleanup similar cases to MergeBlockIntoPredecessor. (authored by asbirlea). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 225317 llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
|