[PATCH] D152112: [TypePromotion] Don't treat bitcast as a Source
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 8 02:32:25 PDT 2023
dmgreen updated this revision to Diff 529540.
dmgreen added a comment.
I've limited bitcasts to only when the input and output types are the same, in order to capture constants but leave other bitcasts alone. This prevents v8i1->i8 bitcasts being promoted. (Also half->i16 but I didn't see those causing a problem, and ptrs will be too large to be promoted).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152112/new/
https://reviews.llvm.org/D152112
Files:
llvm/lib/CodeGen/TypePromotion.cpp
llvm/test/Transforms/TypePromotion/AArch64/bitcast.ll
llvm/test/Transforms/TypePromotion/ARM/casts.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152112.529540.patch
Type: text/x-patch
Size: 4416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230608/71bdf995/attachment.bin>
More information about the llvm-commits
mailing list