diff options
author | Nirav Dave <niravd@google.com> | 2019-03-28 15:53:01 +0000 |
---|---|---|
committer | Nirav Dave <niravd@google.com> | 2019-03-28 15:53:01 +0000 |
commit | 8b9c9822a140f083877969ae2c51ad91506e25f9 (patch) | |
tree | a607518abd890cec7e3163920f7cc016bb2ca95d /llvm/lib/CodeGen | |
parent | ffa8d3def7615f4311ddb6c3a8a6f200bf2af825 (diff) | |
download | bcm5719-llvm-8b9c9822a140f083877969ae2c51ad91506e25f9.tar.gz bcm5719-llvm-8b9c9822a140f083877969ae2c51ad91506e25f9.zip |
[DAG] Fix Lifetime Node ID hashing.
llvm-svn: 357179
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 6648d1b089e..3cd08271f26 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -517,6 +517,13 @@ static void AddNodeIDCustom(FoldingSetNodeID &ID, const SDNode *N) { case ISD::TargetFrameIndex: ID.AddInteger(cast<FrameIndexSDNode>(N)->getIndex()); break; + case ISD::LIFETIME_START: + case ISD::LIFETIME_END: + if (cast<LifetimeSDNode>(N)->hasOffset()) { + ID.AddInteger(cast<LifetimeSDNode>(N)->getSize()); + ID.AddInteger(cast<LifetimeSDNode>(N)->getOffset()); + } + break; case ISD::JumpTable: case ISD::TargetJumpTable: ID.AddInteger(cast<JumpTableSDNode>(N)->getIndex()); |