The value numbering function is recursive, so it is possible for multiple new
authorDuncan Sands <baldrick@free.fr>
Mon, 27 Feb 2012 09:54:35 +0000 (09:54 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 27 Feb 2012 09:54:35 +0000 (09:54 +0000)
commit5583e30818255281dc3b2122ec7207bf68b449ae
tree8f83f5458470a348020e57ec6d98d395034fd0e2
parent669011f50b8234bb4775d52a2d1e1ba5f6311e62
The value numbering function is recursive, so it is possible for multiple new
value numbers to be assigned when calculating any particular value number.
Enhance the logic that detects new value numbers to take this into account,
for a tiny compile time speedup.  Fix a comment typo while there.

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