When a VPReductionRecipe has a condition, its execute method first
creates a select where the values for the disabled lanes are replaced
by the identity values for that reduction kind. This patch fixes
a crash in that logic when the VF is scalar, so that there is no
need to create a vector of identity values.
Details
Details
- Reviewers
fhahn Ayal ABataev nikolaypanchenko
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/Transforms/LoopVectorize/AArch64/scalar_interleave_masked_reduce.ll | ||
---|---|---|
19 | it's probably worth to check the full IR; the code modifies IR generation so we should check the generated IR |
llvm/test/Transforms/LoopVectorize/AArch64/scalar_interleave_masked_reduce.ll | ||
---|---|---|
35–36 | I simplified the test a tiny bit more by removing the LCSSA phi, I used a return to make the value live-out. If there is another (preferred) way, I'd be happy to change this! |
I also suggest to remove these lines and add -mtriple=aarch64-linux-gnu as an opt parameter