This is an archive of the discontinued LLVM Phabricator instance.

Split BaseIndexOffset and MemOpLink into separate header
AbandonedPublic

Authored by arsenm on Jun 23 2015, 10:05 AM.

Details

Reviewers
None
Summary

Move out of DAGCombiner into somewhere more accessible.
This is useful in other scenarios that want to do
adjacent load merging for future commits.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 28255.Jun 23 2015, 10:05 AM
arsenm retitled this revision from to Split BaseIndexOffset and MemOpLink into separate header .
arsenm updated this object.
arsenm edited the test plan for this revision. (Show Details)
arsenm added a subscriber: Unknown Object (MLST).
hfinkel added inline comments.
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?

arsenm abandoned this revision.Apr 5 2020, 7:45 AM