Details
Diff Detail
Event Timeline
Hi @DylanFleming-arm
I believe something wrong happened when you uploaded this patch.
It is not showing LoopVectorize.cpp file.
I can only see Context not available.
Is that happening for you too?
llvm/test/Transforms/LoopVectorize/AArch64/sve-trunc-min-bitwidth.ll | ||
---|---|---|
2 | Remove that | |
3 | Can you make that a more generic test using the flag: | |
5 | Remove that too. | |
106 | I believe you don't need that. |
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | ||
---|---|---|
3955 | This looks like the same code, just different formatting. Did you diff with the correct commit? It also says that llvm/test/Transforms/LoopVectorize/AArch64/sve-trunc-min-bitwidth.ll was moved, but this file does not exist upstream. |
llvm/test/Transforms/LoopVectorize/scalable-trunc-min-bitwidth.ll | ||
---|---|---|
2 ↗ | (On Diff #352460) | For most of the other scalable tests added to LoopVectorize we've used -scalable-vectorization=on |
4 ↗ | (On Diff #352460) | This function doesn't have any attributes, so you can remove the #0 |
68 ↗ | (On Diff #352460) | I think you can change this to %for.body and then remove the for.body.pre block below. |
llvm/test/Transforms/LoopVectorize/scalable-trunc-min-bitwidth.ll | ||
---|---|---|
9 ↗ | (On Diff #354515) | This loop is no longer vectorized, so this test is no longer testing your code. |
Just a few more nits on the test.
llvm/test/Transforms/LoopVectorize/scalable-trunc-min-bitwidth.ll | ||
---|---|---|
4 ↗ | (On Diff #355831) | %dptr is not a pointer, but rather the number of loop iterations, e.g. %N. |
4 ↗ | (On Diff #355831) | sptr is also not a pointer, but rather some store value, e.g. %val. |
4 ↗ | (On Diff #355831) | if you make i16* %hptr into i16* noalias %hptr, then you avoid the memory checks because the compiler knows the data pointed to by %hptr doesn't alias with any other memory that's accessed in the function, so it won't have to actively check if there is a dependence between the load/store by adding the compares. See the LangRef. |
This looks like the same code, just different formatting.
Did you diff with the correct commit? It also says that llvm/test/Transforms/LoopVectorize/AArch64/sve-trunc-min-bitwidth.ll was moved, but this file does not exist upstream.