aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2023-11-13 14:42:52 +0000
committerGitHub <noreply@github.com>2023-11-13 14:42:52 +0000
commit2238363a5f3081274b54dd0d1b0ff297e6940ba5 (patch)
treeaf9e056c23f4bc4765e8238dfc9d600c6bcdf806 /clang/lib/CodeGen/CodeGenModule.cpp
parentdc6d0773960c664eee12a1ed871fad5c81a20a12 (diff)
downloadllvm-2238363a5f3081274b54dd0d1b0ff297e6940ba5.zip
llvm-2238363a5f3081274b54dd0d1b0ff297e6940ba5.tar.gz
llvm-2238363a5f3081274b54dd0d1b0ff297e6940ba5.tar.bz2
[AArch64] Prevent v1f16 vselect/setcc type expansion. (#72048)
PR #71614 identified an issue in the lowering of v1f16 vector compares, where the `v1i1 setcc` is expanded to `v1i16 setcc`, and the `v1i16 setcc` tries to be expanded to a `v2i16 setcc` which fails. For floating point types we can let them scalarize instead though, generating a `setcc f16` that can be lowered using normal fp16 lowering. 07a8ff4892b2a54f0bd5843f863bcffa7a258f1f added a special case combine for v1 vselect to expand the predicate type to the same size as the fcmp operands. This turns that off for float types, allowing them to scalarize naturally, which hopefully fixes the issue by preventing the v1i16 setcc, meaning it wont try to widen to larger vectors. The codegen might not be optimal, but as far as I can tell everything generated successfully, providing that no `v1i16 setcc v1f16` instructions get generated.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions