diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-12-17 20:30:20 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-12-17 20:30:20 +0000 |
commit | 5852aa44aeaaeb1af6dcc7002b13af977f1df5b3 (patch) | |
tree | 4efae5d917cca6fe26d764efa47d1113bac9e5e3 /llvm/lib/CodeGen/SelectionDAG | |
parent | 15b7246935ad656c916aedde5e16cfb67cf18921 (diff) | |
download | bcm5719-llvm-5852aa44aeaaeb1af6dcc7002b13af977f1df5b3.tar.gz bcm5719-llvm-5852aa44aeaaeb1af6dcc7002b13af977f1df5b3.zip |
[SDAG] Clarify the origin of chain in REG_SEQUENCE in comment, NFC
llvm-svn: 349391
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp index da6d973e0b7..6a6114677cc 100644 --- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp @@ -652,7 +652,9 @@ void InstrEmitter::EmitRegSequence(SDNode *Node, const MCInstrDesc &II = TII->get(TargetOpcode::REG_SEQUENCE); MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(), II, NewVReg); unsigned NumOps = Node->getNumOperands(); - // REG_SEQUENCE can "inherit" a chain from a subnode. + // If the input pattern has a chain, then the root of the corresponding + // output pattern will get a chain as well. This can happen to be a + // REG_SEQUENCE (which is not "guarded" by countOperands/CountResults). if (NumOps && Node->getOperand(NumOps-1).getValueType() == MVT::Other) --NumOps; // Ignore chain if it exists. |