multiple times due to a RAUW.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46680
91177308-0d34-0410-b5e6-
96231b3b80d8
// Node updates can mean pretty much anything. It is possible that an
// operand was set to something already processed (f.e.) in which case
// this node could become ready. Recompoute its flags.
- DTL.ReanalyzeNodeFlags(N);
+ if (N->getNodeId() != DAGTypeLegalizer::ReadyToProcess)
+ DTL.ReanalyzeNodeFlags(N);
}
};
}
class VISIBILITY_HIDDEN DAGTypeLegalizer {
TargetLowering &TLI;
SelectionDAG &DAG;
-
+public:
// NodeIDFlags - This pass uses the NodeID on the SDNodes to hold information
// about the state of the node. The enum has all the values.
enum NodeIDFlags {
// 1+ - This is a node which has this many unlegalized operands.
};
-
+private:
enum LegalizeAction {
Legal, // The target natively supports this type.
Promote, // This type should be executed in a larger type.