This patch adds check for dead blocks and skip them for processSwitchInst(). This will help reduce compilation time.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/Utils/LowerSwitch.cpp | ||
---|---|---|
127 ↗ | (On Diff #31842) | Seems we're ending up with both the DeleteList and checking for dead blocks in the loop? It would be nice if we only had to check in one place. Perhaps one solution would be to make DeleteList a SmallPtrSet instead, and in the loop we could do "if (DeleteSet.contains(Cur)) continue;" |