summaryrefslogtreecommitdiff
path: root/src/jit/lir.h
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2017-07-31 17:41:13 -0700
committerCarol Eidt <carol.eidt@microsoft.com>2017-08-16 11:37:16 -0700
commit0ad49b141f1d06c5e83ec58fa7f21c7d2f3714d3 (patch)
tree717327f4a7f0fabc9d1a7c83681504818d6d01f5 /src/jit/lir.h
parent89d8be12677a5d395d1ec7e62874a4476ea5d4d6 (diff)
downloadcoreclr-0ad49b141f1d06c5e83ec58fa7f21c7d2f3714d3.tar.gz
coreclr-0ad49b141f1d06c5e83ec58fa7f21c7d2f3714d3.tar.bz2
coreclr-0ad49b141f1d06c5e83ec58fa7f21c7d2f3714d3.zip
Move Containment Analysis to Lowering
- Ensure that the only changes to child nodes are the specification of srcCandidates (i.e. the register requirements of the parent/consumer) - Since this now occurs before redoing dataflow, we don't have complete information on what lclVars are containable. To mitigate this: - In `TreeNodeInfoInit()`, if a lclVar is marked `isRegOptional` but is now untracked, change it to be contained. - Mark decomposed/promoted fields of long params as `lvDoNotEnregister` - Ensure that any new code added after `Lowering` is analyzed as necessary. - When a value becomes unused, it is no longer contained. (This is needed now because liveness runs after containment analysis) - Add dumping of nodes deleted as unused. - Need to set byteable regs, as needed on contained RMW memory ops.
Diffstat (limited to 'src/jit/lir.h')
-rw-r--r--src/jit/lir.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/jit/lir.h b/src/jit/lir.h
index 762c79c3c3..4a71947be7 100644
--- a/src/jit/lir.h
+++ b/src/jit/lir.h
@@ -112,12 +112,12 @@ public:
GenTree* m_firstNode;
GenTree* m_lastNode;
- ReadOnlyRange(GenTree* firstNode, GenTree* lastNode);
-
ReadOnlyRange(const ReadOnlyRange& other) = delete;
ReadOnlyRange& operator=(const ReadOnlyRange& other) = delete;
public:
+ ReadOnlyRange(GenTree* firstNode, GenTree* lastNode);
+
class Iterator
{
friend class ReadOnlyRange;
@@ -312,6 +312,9 @@ public:
inline void GenTree::SetUnusedValue()
{
gtLIRFlags |= LIR::Flags::UnusedValue;
+#ifndef LEGACY_BACKEND
+ ClearContained();
+#endif
}
inline void GenTree::ClearUnusedValue()