diff options
author | Nirav Dave <niravd@google.com> | 2019-01-15 17:09:23 +0000 |
---|---|---|
committer | Nirav Dave <niravd@google.com> | 2019-01-15 17:09:23 +0000 |
commit | fcb4a492db7e27a5cb66b8e28d7ce4190a401c5a (patch) | |
tree | 13f4bfd475cd25b3fcad277fe3448278cbcfd910 | |
parent | dbc41bac0cdf958786e6c3d0bf07565180b90570 (diff) |
[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
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 1db7d78caf8c..871ab9b29881 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -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) { |