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
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/Transforms/LoopVectorize/vector-no-scevcheck.ll | ||
---|---|---|
8 | entry? | |
11 | Is this load needed or can the value directly be passed as argument? | |
15 | 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. | |
18 | Is this branch needed here? | |
21 | Is this load needed or can the value directly be passed as argument? | |
26 | this could be loop2.header. | |
31 | is this branch needed? | |
33 | This could be loop3.header. Is a 3 level loop nest needed for the test? Would a 2 level loop nest be sufficient? | |
46 | loop2.latch? | |
51 | loop1.latch | |
56 | exit? |
llvm/test/Transforms/LoopVectorize/vector-no-scevcheck.ll | ||
---|---|---|
31 | 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 | ||
---|---|---|
15 | 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 | ||
---|---|---|
15 | 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.