aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorCaroline Concatto <caroline.concatto@arm.com>2021-04-12 11:22:53 +0100
committerCaroline Concatto <caroline.concatto@arm.com>2021-04-21 14:16:27 +0100
commitca9b7e2e2f0897dade16d785dafadbf75deaf405 (patch)
tree0f416acdb3e3c8b6fffc44cdd908d590ba8905b1 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent70ab76a81b982354fea7f0cee85f7001ad30b2e6 (diff)
downloadllvm-ca9b7e2e2f0897dade16d785dafadbf75deaf405.zip
llvm-ca9b7e2e2f0897dade16d785dafadbf75deaf405.tar.gz
llvm-ca9b7e2e2f0897dade16d785dafadbf75deaf405.tar.bz2
[AArch64][SVE] Fix crash with icmp+select
This patch changes the lowering of SELECT_CC from Legal to Expand for scalable vector and adds support for scalable vectors in performSelectCombine. When selecting the nodes to lower in visitSELECT it checks if it is possible to use SELECT_CC in cases where SETCC is followed by SELECT. visistSELECT checks if SELECT_CC is legal or custom to replace SELECT by SELECT_CC. SELECT_CC used to be legal for scalable vector, so the node changes to SELECT_CC. This used to crash the compiler as there is no support for SELECT_CC with scalable vectors. So now the compiler lowers to VSELECT instead of SELECT_CC. Differential Revision: https://reviews.llvm.org/D100485
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions