Don't call isTriviallyDeadInstructions() once we discover that an instruction is dead. Instead, set DFS number zero (as suggested by Danny) and forget about it (this also speeds up things as we won't try to reprocess that block).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/Scalar/NewGVN.cpp | ||
---|---|---|
241–243 ↗ | (On Diff #85065) | This also adds a comment explaining what these array are for (in case it wasn't entirely obvious) and the special meaning of DFS number == 0 |