mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +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.
|
// Do not check for single registers.
|
||||||
if (AssignedReg) {
|
if (AssignedReg) {
|
||||||
Regs.push_back(AssignedReg);
|
|
||||||
--NumRegs;
|
|
||||||
if (NumRegs) {
|
|
||||||
for (; *I != AssignedReg; ++I)
|
for (; *I != AssignedReg; ++I)
|
||||||
assert(I != RC->end() && "Didn't find reg!");
|
assert(I != RC->end() && "AssignedReg should be member of RC");
|
||||||
++I;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (; NumRegs; --NumRegs, ++I) {
|
for (; NumRegs; --NumRegs, ++I) {
|
||||||
|
Loading…
Reference in New Issue
Block a user