[all-commits] [llvm/llvm-project] 3cc15e: [SLP] Fix assert from non-constant index in insert...
bcahoon via All-commits
all-commits at lists.llvm.org
Tue Feb 22 14:01:22 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3cc15e2cb657f3a814c8bd482bb7108782561abd
https://github.com/llvm/llvm-project/commit/3cc15e2cb657f3a814c8bd482bb7108782561abd
Author: Brendon Cahoon <brendon.cahoon at amd.com>
Date: 2022-02-22 (Tue, 22 Feb 2022)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
A llvm/test/Transforms/SLPVectorizer/slp-variable-insertelement.ll
Log Message:
-----------
[SLP] Fix assert from non-constant index in insertelement
A call to getInsertIndex() in getTreeCost() is returning None,
which causes an assert because a non-constant index value for
insertelement was not expected. This case occurs when the
insertelement index value is defined with a PHI.
Differential Revision: https://reviews.llvm.org/D120223
More information about the All-commits
mailing list