[all-commits] [llvm/llvm-project] e098f6: [AArch64] Only apply bool vector bitcast opt if re...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Feb 16 04:52:12 PST 2024
Branch: refs/heads/release/18.x
Home: https://github.com/llvm/llvm-project
Commit: e098f6c4aaccec326a2fc4b45323b3822e02c270
https://github.com/llvm/llvm-project/commit/e098f6c4aaccec326a2fc4b45323b3822e02c270
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-02-16 (Fri, 16 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.
(cherry picked from commit 92d79922051f732560acf3791b543df1e6580689)
More information about the All-commits
mailing list