Teach SimpleLoopUnswitch to preserve MemorySSA.
Enable tests for correctness, dependency disabled by default.
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 19902 Build 19902: arc lint + arc unit
Event Timeline
LGTM
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | ||
---|---|---|
1266–1271 | 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 | ||
---|---|---|
1266–1271 | 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.)