Teach SimpleLoopUnswitch to preserve MemorySSA.
Enable tests for correctness, dependency disabled by default.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | ||
---|---|---|
1437–1442 ↗ | (On Diff #176580) | 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 | ||
---|---|---|
1437–1442 ↗ | (On Diff #176580) | 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. |