This is an archive of the discontinued LLVM Phabricator instance.

[lanai] Add areMemAccessesTriviallyDisjoint, getMemOpBaseRegImmOfs and getMemOpBaseRegImmOfsWidth.
ClosedPublic

Authored by jpienaar on Apr 8 2016, 11:16 AM.

Diff Detail

Event Timeline

jpienaar updated this revision to Diff 53047.Apr 8 2016, 11:16 AM
jpienaar retitled this revision from to [lanai] Add areMemAccessesTriviallyDisjoint, getMemOpBaseRegImmOfs and getMemOpBaseRegImmOfsWidth..
jpienaar updated this object.
jpienaar added reviewers: eliben, majnemer.
jpienaar added a subscriber: llvm-commits.
mcrosier added a subscriber: mcrosier.EditedApr 8 2016, 11:25 AM

You're going to need lots of tests... :)

jpienaar updated this revision to Diff 53188.Apr 10 2016, 7:57 PM

Adding simple test case to verify effect on scheduling DAG due to areMemAccessesTriviallyDisjoint change.

@mcrosier: Yes indeed, funny things can happen if these are wrong :). Added a IR test to test some of the different code paths in areMemAccessesTriviallyDisjoint.

Friendly ping

majnemer added inline comments.Apr 14 2016, 12:02 AM
lib/Target/Lanai/LanaiInstrInfo.cpp
110

std::min?

111

std::max?

113

Please clang-format this.

363

clang-format this

369–388

clang-format this too.

398–412

And this.

412

Extra semicolon.

test/CodeGen/Lanai/lanai-misched-trivial-disjoint.ll
2

I'd recommend piping the file in via stdin:

llc < %s -mtriple=lanai-unknown-unknown -debug-only=misched -o /dev/null 2>&1

This prevents the path to the file from showing up in any of LLVM's output. Occasionally, this causes problems if content that a CHECK line is searching for can be found inside of a path.

7

I'd remove this comment

jpienaar updated this revision to Diff 53705.Apr 14 2016, 7:28 AM
jpienaar marked 9 inline comments as done.

Updated to address comments.

Updated, thanks

test/CodeGen/Lanai/lanai-misched-trivial-disjoint.ll
2

Fixed thanks. Didn't think about check matching on the path.

majnemer accepted this revision.Apr 14 2016, 9:17 AM
majnemer edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 14 2016, 9:17 AM
jpienaar closed this revision.Apr 14 2016, 9:53 AM