Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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? |
Comment Actions
@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.
Comment Actions
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
I think it would be good to update the comment above to reflect all the conditions we check.