[unroll] Replace a linear time check for no uses with a constant time
authorChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 04:06:08 +0000 (04:06 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 04:06:08 +0000 (04:06 +0000)
commit82cb30f10cf0849b876e6722e0a2305c91855239
tree40d9c05a8de0c7bd4fad54d96e5fb9736eccf27f
parentd9cb6203303e8aff32ed0e96c3cabf0e4e2ffb44
[unroll] Replace a linear time check for no uses with a constant time
check.

Also hoist this into the enqueue process as it is faster even than
testing the worklist set, we should just directly filter these out much
like we filter out constants and such.

llvm-svn: 229056
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp