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
Event Timeline
lib/Transforms/Scalar/NewGVN.cpp | ||
---|---|---|
241–243 | 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 |
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