Add getMemOpBaseRegImmOfsWidth to enable determining independence during MiSched.
Details
Diff Detail
Event Timeline
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.
| lib/Target/Lanai/LanaiInstrInfo.cpp | ||
|---|---|---|
| 110 | std::min? | |
| 111 | std::max? | |
| 113 | Please clang-format this. | |
| 362 | clang-format this | |
| 368–387 | clang-format this too. | |
| 397–411 | And this. | |
| 411 | Extra semicolon. | |
| test/CodeGen/Lanai/lanai-misched-trivial-disjoint.ll | ||
| 1 ↗ | (On Diff #53188) | 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. | 
| 6 ↗ | (On Diff #53188) | I'd remove this comment | 
Updated, thanks
| test/CodeGen/Lanai/lanai-misched-trivial-disjoint.ll | ||
|---|---|---|
| 1 ↗ | (On Diff #53188) | Fixed thanks. Didn't think about check matching on the path. | 
std::min?