[Legalizer] Only allocate the SetVectors once per function.
[Legalizer] Only allocate the SetVectors once per function.

Prior to this patch we used to create SetVectors in temporaries that
were created and destroyed for each instruction. Now, instead we create
and destroyed them only once, but clear the content for each
instruction.
This speeds up the pass by ~25%.

NFC.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@315756 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 35a6ebd9c8138e7c12134afacc19b622ffc52133)

apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm