]> granicus.if.org Git - llvm/commit
[NewGVN] Optimize processing for instructions found trivially dead.
authorDavide Italiano <davide@freebsd.org>
Fri, 20 Jan 2017 23:29:28 +0000 (23:29 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 20 Jan 2017 23:29:28 +0000 (23:29 +0000)
commit38596a94735a3b04f6752efcd370504ed8ce7e47
tree502f44a5ff471259a01148155fcf5d80de9a7287
parent6955b2c2f5057301533fecd2c28a0155fa49a29b
[NewGVN] Optimize processing for instructions found trivially dead.

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).

Differential Revision:  https://reviews.llvm.org/D28930

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292676 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/NewGVN.cpp