llvm.org GIT mirror llvm / 567cac0
Delete unnecessary variable. <rdar://problem/7662569> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129796 91177308-0d34-0410-b5e6-96231b3b80d8 Stuart Hastings 9 years ago
1 changed file(s) with 4 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
6565 /// against each other, including inserted libcalls.
6666 SmallVector LastCALLSEQ;
6767
68 // Track CALLSEQ_BEGIN/CALLSEQ_END nesting.
69 int depthCALLSEQ;
70
7168 enum LegalizeAction {
7269 Legal, // The target natively supports this operation.
7370 Promote, // This operation should be executed in a larger type.
182179 void ExpandNode(SDNode *Node, SmallVectorImpl &Results);
183180 void PromoteNode(SDNode *Node, SmallVectorImpl &Results);
184181
185 SDValue getLastCALLSEQ() { return LastCALLSEQ.back(); /*[depthCALLSEQ];*/ }
186 void setLastCALLSEQ(const SDValue s) { LastCALLSEQ.back() /*[depthCALLSEQ]*/ = s; }
182 SDValue getLastCALLSEQ() { return LastCALLSEQ.back(); }
183 void setLastCALLSEQ(const SDValue s) { LastCALLSEQ.back() = s; }
187184 void pushLastCALLSEQ(SDValue s) {
188 depthCALLSEQ++;
189185 LastCALLSEQ.push_back(s);
190186 }
191187 void popLastCALLSEQ() {
192188 LastCALLSEQ.pop_back();
193 depthCALLSEQ--;
194 assert(depthCALLSEQ >= 0 && "excess pop of LastCALLSEQ");
195189 }
196190 };
197191 }
238232 }
239233
240234 void SelectionDAGLegalize::LegalizeDAG() {
241 depthCALLSEQ = 0;
242235 pushLastCALLSEQ(DAG.getEntryNode());
243236
244237 // The legalize process is inherently a bottom-up recursive process (users
951944 case ISD::BR_JT:
952945 case ISD::BR_CC:
953946 case ISD::BRCOND:
954 assert(depthCALLSEQ == 1 && "branch inside CALLSEQ_BEGIN/END?");
947 assert(LastCALLSEQ.size() == 1 && "branch inside CALLSEQ_BEGIN/END?");
955948 // Branches tweak the chain to include LastCALLSEQ
956949 Ops[0] = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, Ops[0],
957950 getLastCALLSEQ());
35453538
35463539 LegalizeSetCCCondCode(TLI.getSetCCResultType(Tmp2.getValueType()),
35473540 Tmp2, Tmp3, Tmp4, dl);
3548 assert(depthCALLSEQ == 1 && "branch inside CALLSEQ_BEGIN/END?");
3541 assert(LastCALLSEQ.size() == 1 && "branch inside CALLSEQ_BEGIN/END?");
35493542 setLastCALLSEQ(DAG.getEntryNode());
35503543
35513544 assert(!Tmp3.getNode() && "Can't legalize BR_CC with legal condition!");