OSDN Git Service

[unroll] Don't check the loop set for whether an instruction is
authorChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 04:30:44 +0000 (04:30 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 04:30:44 +0000 (04:30 +0000)
commit2d38576d566021b78ec69f53d385a08027471a01
tree9ccff1cbaa19caf67a2c281bdab9cbcbca6ff928
parentb9cb5b19d91ca570443e0dd09102bd611d36c4fc
[unroll] Don't check the loop set for whether an instruction is
contained in it each time we try to add it to the worklist, just check
this when pulling it off the worklist. That way we do it at most once
per instruction with the cost of the worklist set we would need to pay
anyways.

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