mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
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:
parent
857e8cdd65
commit
188839a219
@ -91,9 +91,8 @@ private:
|
|||||||
TerminatorInst *convertToUnconditionalBranch(TerminatorInst *TI);
|
TerminatorInst *convertToUnconditionalBranch(TerminatorInst *TI);
|
||||||
|
|
||||||
inline void markInstructionLive(Instruction *I) {
|
inline void markInstructionLive(Instruction *I) {
|
||||||
if (LiveSet.count(I)) return;
|
if (!LiveSet.insert(I).second) return;
|
||||||
DEBUG(std::cerr << "Insn Live: " << *I);
|
DEBUG(std::cerr << "Insn Live: " << *I);
|
||||||
LiveSet.insert(I);
|
|
||||||
WorkList.push_back(I);
|
WorkList.push_back(I);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user