Move out of DAGCombiner into somewhere more accessible.
This is useful in other scenarios that want to do
adjacent load merging for future commits.
Details
- Reviewers
- None
Diff Detail
Event Timeline
include/llvm/CodeGen/BaseIndexOffset.h | ||
---|---|---|
12 | Please include llvm/CodeGen/SelectionDAGNodes.h here. | |
68 | I don't understand this code. Why do we give up if the operand of the add is a multiply? The fact that this is special seems to encode some assumption about the order of visitation, and we may need to be careful about generalizing here. | |
73 | Given that we have Base, Index and Offset, naming the Index here 'IndexOffset' is a bit confusing. Either just call it Index (and redefine it later if you can split off an offset), or call it IndexAndOffset. | |
106 | Why is this here too? |
Please include llvm/CodeGen/SelectionDAGNodes.h here.