Reduce number of set operations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-12-12 22:16:13 +00:00
parent 857e8cdd65
commit 188839a219

View File

@ -91,9 +91,8 @@ private:
TerminatorInst *convertToUnconditionalBranch(TerminatorInst *TI);
inline void markInstructionLive(Instruction *I) {
if (LiveSet.count(I)) return;
if (!LiveSet.insert(I).second) return;
DEBUG(std::cerr << "Insn Live: " << *I);
LiveSet.insert(I);
WorkList.push_back(I);
}