OSDN Git Service

[unroll] Don't use a map from pointer to bool. Use a set.
authorChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 00:29:39 +0000 (00:29 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 00:29:39 +0000 (00:29 +0000)
commit83fafb32fda4ea4228edbed3c015d4a61d281bc8
treec3c30121ac9a8860c8f0df0d11813b9e8f397013
parent37fc1833a8276a6a3fbffa6d0b1d66120d1c5a01
[unroll] Don't use a map from pointer to bool. Use a set.

This is much more efficient. In particular, the query with the user
instruction has to insert a false for every missing instruction into the
set. This is just a cleanup a long the way to fixing the underlying
algorithm problems here.

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