When determining if an and should be merged into an extending load
the constant argument to the and is currently not checked if the
argument requires truncation. This prevents the combine happening when
the vector width is half the normal available vector width for SVE VLA
vectors.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Since there were no tests triggering this before, here's a compiler explorer link showing what codegen looks like at the moment for comparison: https://godbolt.org/z/3f8Wh5c5x
I've added more tests than just the one that gets triggered here as more of these have the same issue on llvm 14 so that should also be defended against regressions.