[unroll] Rather than an operand set, use a setvector for the worklist.
authorChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 03:57:40 +0000 (03:57 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 13 Feb 2015 03:57:40 +0000 (03:57 +0000)
commit6a1227657333bf6a38924cda18d4b3bc677fc560
tree29262e674692e2a04a960099d13d996b6ba01f83
parent29e00cf519d5861ac0aefa1c5f48ae10cf637dc5
[unroll] Rather than an operand set, use a setvector for the worklist.

We don't just want to handle duplicate operands within an instruction,
but also duplicates across operands of different instructions. I should
have gone straight to this, but I had convinced myself that it wasn't
going to be necessary briefly. I've come to my senses after chatting
more with Nick, and am now happier here.

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