Optimize this test. Firstly, only Instructions may use other Instructions.
authorNick Lewycky <nicholas@mxc.ca>
Wed, 6 Jun 2007 11:26:20 +0000 (11:26 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 6 Jun 2007 11:26:20 +0000 (11:26 +0000)
commit51e844b60168d019a293daddf19bd291c706dc3f
tree35783992cbe35b777ab8ff30e8a3e2653df13e6b
parent2c614c5c699fed503b93e85ea0cb48811843c3c7
Optimize this test. Firstly, only Instructions may use other Instructions.
Secondly, checking whether removal succeeded tells you whether it was in
the map to begin with.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37469 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp