[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)
commit2640fd5bae01dfdb7d07178c0a71cdbf8a519db6
treeba9f7edbea26f6522b39bfaa1416bdd61d79bb83
parent6a1227657333bf6a38924cda18d4b3bc677fc560
[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.

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