[all-commits] [llvm/llvm-project] 549626: [SPIRV] Add Intermediate cast when Vector From/To ...
Farzon Lotfi via All-commits
all-commits at lists.llvm.org
Tue Feb 24 15:29:57 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 549626702518d8ef0af45f4438d755a99f50e38c
https://github.com/llvm/llvm-project/commit/549626702518d8ef0af45f4438d755a99f50e38c
Author: Farzon Lotfi <farzonlotfi at microsoft.com>
Date: 2026-02-24 (Tue, 24 Feb 2026)
Changed paths:
M llvm/lib/Target/SPIRV/SPIRVLegalizePointerCast.cpp
M llvm/test/CodeGen/SPIRV/pointers/ptrcast-bitcast.ll
Log Message:
-----------
[SPIRV] Add Intermediate cast when Vector From/To types are of different element size and type (#182166)
fixes https://github.com/llvm/llvm-project/issues/177838
- Replaced assert(TargetTypeSize == SourceTypeSize) with a conditional:
when sizes differ, compute a BitcastType with the target's element type
but sized to match the source's total bitwidth
- Instead of unconditionally returning after bitcast, only return early
if BitcastType == TargetType (same-size case), otherwise fall through to
the shuffle logic
- Updated the final assert to use AssignValue->getType() since that may
now be the intermediate type rather than SourceType
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list