[all-commits] [llvm/llvm-project] 7b8d50: [InstSimplify] Clarify use of FixedVectorType in S...
Cullen Rhodes via All-commits
all-commits at lists.llvm.org
Fri Nov 27 02:25:39 PST 2020
Branch: refs/heads/temp-test-main
Home: https://github.com/llvm/llvm-project
Commit: 7b8d50b141bbf223eab33a75f468be4ee92ad052
https://github.com/llvm/llvm-project/commit/7b8d50b141bbf223eab33a75f468be4ee92ad052
Author: Cullen Rhodes <cullen.rhodes at arm.com>
Date: 2020-11-27 (Fri, 27 Nov 2020)
Changed paths:
M llvm/lib/Analysis/InstructionSimplify.cpp
M llvm/test/Transforms/InstSimplify/select.ll
Log Message:
-----------
[InstSimplify] Clarify use of FixedVectorType in SimplifySelectInst
Folding a select of vector constants that include undef elements only
applies to fixed vectors, but there's no earlier check the type is not
scalable so it crashes for scalable vectors. This adds a check so this
optimization is only attempted for fixed vectors.
Reviewed By: sdesmalen
Differential Revision: https://reviews.llvm.org/D92046
More information about the All-commits
mailing list