summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-05-27 20:26:41 +0000
committerdim <dim@FreeBSD.org>2015-05-27 20:26:41 +0000
commit5ef8fd3549d38e883a31881636be3dc2a275de20 (patch)
treebd13a22d9db57ccf3eddbc07b32c18109521d050 /contrib/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h
parent77794ebe2d5718eb502c93ec32f8ccae4d8a0b7b (diff)
parent782067d0278612ee75d024b9b135c221c327e9e8 (diff)
downloadFreeBSD-src-5ef8fd3549d38e883a31881636be3dc2a275de20.zip
FreeBSD-src-5ef8fd3549d38e883a31881636be3dc2a275de20.tar.gz
Merge llvm trunk r238337 from ^/vendor/llvm/dist, resolve conflicts, and
preserve our customizations, where necessary.
Diffstat (limited to 'contrib/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h')
-rw-r--r--contrib/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/contrib/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h b/contrib/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h
index 673112c..82d0c62 100644
--- a/contrib/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h
+++ b/contrib/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h
@@ -30,8 +30,7 @@ class SelectionDAGBuilder;
/// works in concert with information in FunctionLoweringInfo.
class StatepointLoweringState {
public:
- StatepointLoweringState() : NextSlotToAllocate(0) {
- }
+ StatepointLoweringState() : NextSlotToAllocate(0) {}
/// Reset all state tracking for a newly encountered safepoint. Also
/// performs some consistency checking.
@@ -57,25 +56,6 @@ public:
Locations[val] = Location;
}
- /// Returns the relocated value for a given input pointer. Will
- /// return SDValue() if this value hasn't yet been reloaded from
- /// it's stack slot after the statepoint. Otherwise, the value
- /// has already been reloaded and the SDValue of that reload will
- /// be returned. Note that VMState values are spilled but not
- /// reloaded (since they don't change at the safepoint unless
- /// also listed in the GC pointer section) and will thus never
- /// be in this map
- SDValue getRelocLocation(SDValue val) {
- if (!RelocLocations.count(val))
- return SDValue();
- return RelocLocations[val];
- }
- void setRelocLocation(SDValue val, SDValue Location) {
- assert(!RelocLocations.count(val) &&
- "Trying to allocate already allocated location");
- RelocLocations[val] = Location;
- }
-
/// Record the fact that we expect to encounter a given gc_relocate
/// before the next statepoint. If we don't see it, we'll report
/// an assertion.
@@ -118,8 +98,6 @@ private:
/// Maps pre-relocation value (gc pointer directly incoming into statepoint)
/// into it's location (currently only stack slots)
DenseMap<SDValue, SDValue> Locations;
- /// Map pre-relocated value into it's new relocated location
- DenseMap<SDValue, SDValue> RelocLocations;
/// A boolean indicator for each slot listed in the FunctionInfo as to
/// whether it has been used in the current statepoint. Since we try to
OpenPOWER on IntegriCloud