This commit introduces a test for the change introduced by the
[SCEV] Do not plant SCEV checks unnecessarily commit,
D146958.
Details
- Reviewers
ABataev fhahn sdesmalen david-arm - Commits
- rG20d0f80dd356: [test] A test case for D146958
Diff Detail
Unit Tests
Event Timeline
llvm/test/Transforms/LoopVectorize/vector-no-scevcheck.ll | ||
---|---|---|
7 | entry? | |
10 | Is this load needed or can the value directly be passed as argument? | |
14 | Please shorten the block names and try to make them more descriptive, this will make the test easier to read. E.g. IIUC this could be something like loop1.header. | |
17 | Is this branch needed here? | |
20 | Is this load needed or can the value directly be passed as argument? | |
25 | this could be loop2.header. | |
30 | is this branch needed? | |
32 | This could be loop3.header. Is a 3 level loop nest needed for the test? Would a 2 level loop nest be sufficient? | |
45 | loop2.latch? | |
50 | loop1.latch | |
55 | exit? |
llvm/test/Transforms/LoopVectorize/vector-no-scevcheck.ll | ||
---|---|---|
30 | Yes |
llvm/test/Transforms/LoopVectorize/vector-no-scevcheck.ll | ||
---|---|---|
2 | This test needs to pass with current master. Tests are commited as first, so things would be broken. |
llvm/test/Transforms/LoopVectorize/vector-no-scevcheck.ll | ||
---|---|---|
16 | Right, but that's only with the current version of the patch; it should be relatively straightforward to also handle this case (https://reviews.llvm.org/D146958#inline-1439048). In any case, it won't hurt to have negative test cases as well. |
llvm/test/Transforms/LoopVectorize/vector-no-scevcheck.ll | ||
---|---|---|
16 | Hi Florian, your suggestion from the patch review has worked, hence I've modified this test file accordingly. I'd like to have your explicit approval before I merge this one. |
This test needs to pass with current master.
Tests are commited as first, so things would be broken.