diff options
author | Duncan Sands <baldrick@free.fr> | 2008-11-24 14:53:14 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-11-24 14:53:14 +0000 |
commit | 25cf2275ff7de3de3bc0e508abaf457413d74725 (patch) | |
tree | 9cedfc835e90686a918a93c805e119b187702bed /lib/CodeGen/SelectionDAG/LegalizeTypes.h | |
parent | 19ea77f09d7226d4515b67e72be2f7b4dfee36dd (diff) |
If the type legalizer actually legalized anything
(this doesn't happen that often, since most code
does not use illegal types) then follow it by a
DAG combiner run that is allowed to generate
illegal operations but not illegal types. I didn't
modify the target combiner code to distinguish like
this between illegal operations and illegal types,
so it will not produce illegal operations as well
as not producing illegal types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeTypes.h')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeTypes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.h b/lib/CodeGen/SelectionDAG/LegalizeTypes.h index f75fa778ed..6d41cc5110 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypes.h +++ b/lib/CodeGen/SelectionDAG/LegalizeTypes.h @@ -160,7 +160,10 @@ public: "Too many value types for ValueTypeActions to hold!"); } - void run(); + /// run - This is the main entry point for the type legalizer. This does a + /// top-down traversal of the dag, legalizing types as it goes. Returns + /// "true" if it made any changes. + bool run(); /// ReanalyzeNode - Recompute the NodeId and correct processed operands /// for the specified node, adding it to the worklist if ready. |