mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[SelectionDAG] Check membership of register in class for single
register constraints. NFCI. Now that X86's ST(7) constraints are fixed this check can be reinstated. llvm-svn: 351207
This commit is contained in:
parent
1b5f360df9
commit
6b675fa793
@ -7429,13 +7429,8 @@ static void GetRegistersForValue(SelectionDAG &DAG, const SDLoc &DL,
|
||||
|
||||
// Do not check for single registers.
|
||||
if (AssignedReg) {
|
||||
Regs.push_back(AssignedReg);
|
||||
--NumRegs;
|
||||
if (NumRegs) {
|
||||
for (; *I != AssignedReg; ++I)
|
||||
assert(I != RC->end() && "Didn't find reg!");
|
||||
++I;
|
||||
}
|
||||
assert(I != RC->end() && "AssignedReg should be member of RC");
|
||||
}
|
||||
|
||||
for (; NumRegs; --NumRegs, ++I) {
|
||||
|
Loading…
Reference in New Issue
Block a user