[all-commits] [llvm/llvm-project] af15c4: [SLP]Do not crash if number of vector registers do...
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Mon Oct 30 07:34:02 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af15c46777208a4cb4b276c4974a5b556608a415
https://github.com/llvm/llvm-project/commit/af15c46777208a4cb4b276c4974a5b556608a415
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2023-10-30 (Mon, 30 Oct 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
A llvm/test/Transforms/SLPVectorizer/X86/shuffle-multivector.ll
Log Message:
-----------
[SLP]Do not crash if number of vector registers does not feet the vector
type.
Need to check, if the number of vector registers, returned by TTI, is
not greater than total number of mask element and not zero, before
trying to perform any operations. TTI still may return non-valid number
of registers.
More information about the All-commits
mailing list