Use std::unique instead of a SmallPtrSet to ensure unique instructions in UseSlots.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Apr 2011 15:18:18 +0000 (15:18 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Apr 2011 15:18:18 +0000 (15:18 +0000)
commita2948ef5accab638371615f539ea9f9ec5ff5d03
tree7094173d4feae4d1449a703725736e37243498a0
parent0286ca89f0734a81c273e80732a573f619c7ace4
Use std::unique instead of a SmallPtrSet to ensure unique instructions in UseSlots.

This allows us to always keep the smaller slot for an instruction which is what
we want when a register has early clobber defines.

Drop the UsingInstrs set and the UsingBlocks map. They are no longer needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128886 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SlotIndexes.h
lib/CodeGen/SplitKit.cpp
lib/CodeGen/SplitKit.h