Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
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 ↗ | (On Diff #351904) | Remove that |
3 ↗ | (On Diff #351904) | Can you make that a more generic test using the flag: |
5 ↗ | (On Diff #351904) | Remove that too. |
106 ↗ | (On Diff #351904) | I believe you don't need that. |
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | ||
---|---|---|
3955–3956 | 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 | ||
---|---|---|
3 | For most of the other scalable tests added to LoopVectorize we've used -scalable-vectorization=on | |
5 | This function doesn't have any attributes, so you can remove the #0 | |
69 | 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 | ||
---|---|---|
10 | 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 | ||
---|---|---|
5 | %dptr is not a pointer, but rather the number of loop iterations, e.g. %N. | |
5 | sptr is also not a pointer, but rather some store value, e.g. %val. | |
5 | 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.