[all-commits] [llvm/llvm-project] 92d799: [AArch64] Only apply bool vector bitcast opt if re...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Feb 12 01:00:46 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 92d79922051f732560acf3791b543df1e6580689
https://github.com/llvm/llvm-project/commit/92d79922051f732560acf3791b543df1e6580689
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-02-12 (Mon, 12 Feb 2024)
Changed paths:
M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
M llvm/test/CodeGen/AArch64/vec-combine-compare-to-bitmask.ll
Log Message:
-----------
[AArch64] Only apply bool vector bitcast opt if result is scalar (#81256)
This optimization tries to optimize bitcasts from `<N x i1>` to iN, but
currently also triggers for `<N x i1>` to `<M x iK>` bitcasts, if custom
lowering has been requested for these for an unrelated reason. Fix this
by explicitly checking that the result type is scalar.
Fixes https://github.com/llvm/llvm-project/issues/81216.
More information about the All-commits
mailing list