[all-commits] [llvm/llvm-project] 46ea4b: [LV] Avoid a crash when costing a uniform store wh...
Philip Reames via All-commits
all-commits at lists.llvm.org
Thu Jun 23 12:41:57 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 46ea4b5ea10f9363503b047a2e6a577a8603797d
https://github.com/llvm/llvm-project/commit/46ea4b5ea10f9363503b047a2e6a577a8603797d
Author: Philip Reames <preames at rivosinc.com>
Date: 2022-06-23 (Thu, 23 Jun 2022)
Changed paths:
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
M llvm/test/Transforms/LoopVectorize/RISCV/scalable-basics.ll
Log Message:
-----------
[LV] Avoid a crash when costing a uniform store which doesn't correspond to a legal scatter
If we have an unaligned uniform store, then when costing a scalable VF we can't emit code to scalarize it. (Well, we could, but we haven't implemented that case.) This change replaces an assert with a cost-model bailout such that we reject vectorization with the scalable VF instead of crashing.
More information about the All-commits
mailing list