Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM thanks! A but unfortunate the restriction is required, but there’s a few things we can do to improve things, like using ValueTracking to check whether a variable index is in range. But that can be a follow up
llvm/lib/Transforms/Vectorize/VectorCombine.cpp | ||
---|---|---|
805 | I think it would be good to update the comment above to reflect all the conditions we check. | |
llvm/test/Transforms/VectorCombine/load-insert-store.ll | ||
35 | Could you add a test for scalable vectors? |
@qiucf it would be good to land this soon I think, otherwise I'll probably revert the original patch tomorrow and you can re-land the patch with the fix.
I think we should be able to also do this transform for variable indices, if we can prove they are valid, e.g. via constant range info. I put up D102476
clang-tidy: warning: 'auto VecTy' can be declared as 'auto *VecTy' [llvm-qualified-auto]
not useful