Teach SimpleLoopUnswitch to preserve MemorySSA.
Enable tests for correctness, dependency disabled by default.
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 18341 Build 18341: arc lint + arc unit
Event Timeline
LGTM
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | ||
---|---|---|
1092–1097 | It would be really nice to avoid building the set here. Can the API be changed to support a list of unique blocks? We already have uniqued them. (Happy for this to be a follow-up of course.) |
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | ||
---|---|---|
1092–1097 | The implementation of removeBlocks checks existence of a basic block in this list(.count(BB)), and I think that's best done with a set. So not sure if we can avoid building the set anyway. |
It would be really nice to avoid building the set here. Can the API be changed to support a list of unique blocks? We already have uniqued them.
(Happy for this to be a follow-up of course.)