Use this helper to make sure we use the same value at various places.
This will likely be needed at more places were we currently crash
because we use more operands than possible.
Also makes it easier to change in the future.
Paths
| Differential D56859
[SelectionDAG] Add static getMaxNumOperands function to SDNode. ClosedPublic Authored by fhahn on Jan 17 2019, 8:44 AM.
Details Summary Use this helper to make sure we use the same value at various places. Also makes it easier to change in the future.
Diff Detail Event TimelineComment Actions
To remove magic numbers in D56739 This revision is now accepted and ready to land.Jan 17 2019, 12:44 PM Closed by commit rL351537: [SelectionDAG] Add static getMaxNumOperands function to SDNode. (authored by fhahn). · Explain WhyJan 18 2019, 2:06 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 182309 llvm/include/llvm/CodeGen/SelectionDAGNodes.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
|
typo sneaked in, 'll fix that.