llvm.org GIT mirror llvm / 83df32c
[X86] In X86DomainReassignment.cpp add enclosed registers to EnclosedEdges The variable X86DomainReassignment::EnclosedEdges is used to store registers that have been enclosed in some closure, so those registers will be ignored when create new closures. But there is no registers has ever been put into this set, so a single register can be enclosed in multiple closures, it significantly increase compile time. This patch adds a register into EnclosedEdges when it is enclosed into a closure. Differential Revision: https://reviews.llvm.org/D58646 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355430 91177308-0d34-0410-b5e6-96231b3b80d8 Guozhi Wei 7 months ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
555555 // Register already in this closure.
556556 if (!C.insertEdge(CurReg))
557557 continue;
558 EnclosedEdges.insert(Reg);
559560 MachineInstr *DefMI = MRI->getVRegDef(CurReg);
560561 encloseInstr(C, DefMI);